/*
 * Shop this post – product cards at the end of a blog post
 * (inc/shop-this-post.php). Blog posts force link, paragraph and span
 * styles with !important, so the end of this file repeats the block's own
 * values with stronger selectors inside .cbs-body.
 */

.stp {
	--stp-ink: #3A2B2B;
	--stp-ink-2: #5A4846;
	--stp-muted: #7A6A68;
	--stp-accent: #A55F59;
	--stp-accent-hover: #8F4E49;
	--stp-blush: #F8E6E3;
	--stp-line: #EBD3CF;
	--stp-star: #D99A3A;
	--stp-font: 'Solway', serif;
	display: block;
	margin: 40px 0 8px;
	padding: 26px;
	border-radius: 24px;
	background: var(--stp-blush);
	color: var(--stp-ink);
	font-family: var(--stp-font);
	text-align: left;
}
.stp *,
.stp *::before,
.stp *::after { box-sizing: border-box; }
.stp-ico { flex: none; }

.stp__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--stp-accent); font-size: 12px; font-weight: 500; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.stp__title { display: block; margin: 6px 0 4px; color: var(--stp-ink); font-size: 24px; font-weight: 500; line-height: 1.3; }
.stp__sub { display: block; margin: 0 0 4px; color: var(--stp-ink-2); font-size: 15px; line-height: 1.55; }
.stp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.stp__grid:has(> .stp-card:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 380px; margin-left: auto; margin-right: auto; }

/* ---------- Card ---------- */
.stp-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(58, 43, 43, .07); transition: box-shadow .25s ease; }
.stp-card:hover { box-shadow: 0 16px 40px rgba(58, 43, 43, .12); }
.stp-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #F3E3DF; }
.stp-card__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .6s ease; }
.stp-card:hover .stp-card__img img { transform: scale(1.04); }
.stp-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--stp-muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; line-height: 1.5; }
.stp-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 18px; }
.stp-card__brand { color: var(--stp-muted); font-size: 12px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.stp-card__name { color: var(--stp-ink); font-size: 18px; font-weight: 500; line-height: 1.3; }
.stp-stars { color: var(--stp-star); font-size: 14px; letter-spacing: 1px; line-height: 1.2; }
.stp-stars__off { color: #E8DCD8; }
.stp-card__verdict { color: var(--stp-ink-2); font-size: 14px; line-height: 1.55; }
.stp-card__verdict b { color: var(--stp-ink); font-weight: 500; }
.stp-card__foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin-top: auto; padding-top: 10px; }

/* Discount code */
.stp-code { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px dashed #C9A39C; border-radius: 12px; background: #FFF7F5; color: var(--stp-ink-2); font-size: 13px; line-height: 1.3; }
.stp-code .stp-ico { color: var(--stp-accent); }
.stp-code__text { flex: 1; min-width: 0; }
.stp-code__text b { color: var(--stp-accent); font-weight: 700; letter-spacing: .06em; }
.stp .stp-code__copy { flex: none; min-height: 0; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--stp-accent); color: #fff; font: 500 12px/1.3 var(--stp-font); letter-spacing: 0; text-transform: none; cursor: pointer; }
.stp-code__copy:hover,
.stp-code__copy.is-done { background: var(--stp-accent-hover); }

/* Buttons */
.stp-btn,
.stp .ch-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--stp-accent);
	color: #fff;
	font: 500 14px/1.2 var(--stp-font);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease;
}
.stp-btn:hover,
.stp-btn:focus-visible,
.stp .ch-add:hover { background: var(--stp-accent-hover); color: #fff; }
.stp-btn:focus-visible { outline: 2px solid var(--stp-accent); outline-offset: 3px; }
.stp .added_to_cart { display: none; }

/* Own pattern: price, VAT and two buttons */
.stp-price { color: var(--stp-ink); font-size: 18px; font-weight: 500; line-height: 1.2; }
.stp-price s { margin-left: 6px; color: var(--stp-muted); font-size: 14px; font-weight: 400; }
.stp-price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stp-vat,
.stp-vat p { margin: 4px 0 0; color: var(--stp-muted); font-size: 11px; font-weight: 400; line-height: 1.35; }
.stp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.stp-actions .ch-add { flex: 1 1 auto; }
.stp-more { color: var(--stp-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.stp-more:hover { color: var(--stp-accent); }

/* Affiliate note */
.stp__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: var(--stp-muted); font-size: 12.5px; line-height: 1.5; }
.stp__note .stp-ico { margin-top: 1px; }

/* Cards: an odd last card sits centred under the others. */
@media (min-width: 601px) {
	.stp--cards .stp__grid > .stp-card:last-child:nth-child(odd):not(:only-child) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 8px);
	}
}

/* ---------- Compact list (5 or more products, or chosen per post) ---------- */
.stp--list .stp__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.stp--list .stp__grid:has(> .stp-card:only-child) { max-width: none; }
.stp--list .stp-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px; }
.stp--list .stp-card__img { width: 96px; height: 96px; aspect-ratio: auto; border-radius: 12px; }
.stp--list .stp-card:hover .stp-card__img img { transform: none; }
.stp--list .stp-badge { top: 14px; left: 14px; padding: 1px 7px; font-size: 10px; }
.stp--list .stp-card__body { gap: 3px; padding: 2px 6px 2px 0; }
.stp--list .stp-card__brand { font-size: 11px; }
.stp--list .stp-card__name { font-size: 16px; }
.stp--list .stp-stars { font-size: 12px; }
.stp--list .stp-card__verdict { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.stp--list .stp-card__foot { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 6px; }
.stp--list .stp-code { padding: 4px 4px 4px 8px; font-size: 12px; }
.stp--list .stp-btn,
.stp--list .ch-add { min-height: 36px; padding: 0 14px; font-size: 13px; }
.stp--list .stp-price { font-size: 15px; }
.stp--list .stp-actions { gap: 6px 10px; }

@media (max-width: 600px) {
	.stp { margin: 32px -4px 8px; padding: 18px 14px; border-radius: 20px; }
	.stp--list .stp-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
	.stp--list .stp-card__img { width: 72px; height: 72px; }
	.stp--list .stp-badge { top: 12px; left: 12px; }
	.stp--list .stp-card__foot { grid-column: 1 / -1; }
	.stp__title { font-size: 21px; }
	.stp__grid { grid-template-columns: minmax(0, 1fr); }
	.stp__grid:has(> .stp-card:only-child) { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.stp-card,
	.stp-card__img img { transition: none; }
	.stp-card:hover .stp-card__img img { transform: none; }
}

/* =========================================================================
 * Inside blog posts: beat blog-single.css's !important text and link rules.
 * ====================================================================== */
.cicka-blog-single .cbs-body .stp.stp a.stp-btn.stp-btn,
.cicka-blog-single .cbs-body .stp.stp a.stp-btn.stp-btn:visited,
.cicka-blog-single .cbs-body .stp.stp a.stp-btn.stp-btn:hover,
.cicka-blog-single .cbs-body .stp.stp a.ch-add.ch-add,
.cicka-blog-single .cbs-body .stp.stp a.ch-add.ch-add:hover { color: #fff !important; text-decoration: none !important; }
.cicka-blog-single .cbs-body .stp.stp a.stp-more.stp-more { color: var(--stp-ink) !important; text-decoration: none !important; }
.cicka-blog-single .cbs-body .stp.stp a.stp-more.stp-more:hover { color: var(--stp-accent) !important; }
.cicka-blog-single .cbs-body .stp.stp a.stp-card__img.stp-card__img { text-decoration: none !important; }
.cicka-blog-single .cbs-body .stp.stp span,
.cicka-blog-single .cbs-body .stp.stp p { font-family: var(--stp-font) !important; letter-spacing: inherit; }
.cicka-blog-single .cbs-body .stp.stp .stp__kicker { font-size: 12px !important; line-height: 1.4 !important; letter-spacing: .14em !important; }
.cicka-blog-single .cbs-body .stp.stp .stp__title { font-size: 24px !important; line-height: 1.3 !important; }
.cicka-blog-single .cbs-body .stp.stp .stp__sub { font-size: 15px !important; line-height: 1.55 !important; }
.cicka-blog-single .cbs-body .stp.stp .stp-card__brand { font-size: 12px !important; line-height: 1.4 !important; letter-spacing: .1em !important; }
.cicka-blog-single .cbs-body .stp.stp .stp-card__name { font-size: 18px !important; line-height: 1.3 !important; }
.cicka-blog-single .cbs-body .stp.stp .stp-stars,
.cicka-blog-single .cbs-body .stp.stp .stp-stars span { font-size: 14px !important; line-height: 1.2 !important; letter-spacing: 1px !important; }
.cicka-blog-single .cbs-body .stp.stp .stp-card__verdict { font-size: 14px !important; line-height: 1.55 !important; }
.cicka-blog-single .cbs-body .stp.stp .stp-code,
.cicka-blog-single .cbs-body .stp.stp .stp-code span { font-size: 13px !important; line-height: 1.3 !important; }
.cicka-blog-single .cbs-body .stp.stp .stp-badge { font-size: 11px !important; line-height: 1.5 !important; letter-spacing: .04em !important; }
.cicka-blog-single .cbs-body .stp.stp .stp-price,
.cicka-blog-single .cbs-body .stp.stp .stp-price span { font-size: 18px !important; line-height: 1.2 !important; }
.cicka-blog-single .cbs-body .stp.stp .stp-vat,
.cicka-blog-single .cbs-body .stp.stp .stp-vat p,
.cicka-blog-single .cbs-body .stp.stp .stp-vat span { margin: 4px 0 0 !important; color: var(--stp-muted) !important; font-size: 11px !important; line-height: 1.35 !important; }
.cicka-blog-single .cbs-body .stp.stp .stp__note,
.cicka-blog-single .cbs-body .stp.stp .stp__note span { font-size: 12.5px !important; line-height: 1.5 !important; }
.cicka-blog-single .cbs-body .stp.stp a.ch-add span { font-size: 14px !important; line-height: 1.2 !important; }
@media (max-width: 600px) {
	.cicka-blog-single .cbs-body .stp.stp .stp__title { font-size: 21px !important; }
}
/* Compact list sizes inside blog posts. */
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-card__brand { font-size: 11px !important; }
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-card__name { font-size: 16px !important; }
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-stars,
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-stars span { font-size: 12px !important; }
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-card__verdict { font-size: 13px !important; line-height: 1.45 !important; }
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-code,
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-code span { font-size: 12px !important; }
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-badge { font-size: 10px !important; }
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-price,
.cicka-blog-single .cbs-body .stp.stp.stp--list .stp-price span { font-size: 15px !important; }
.cicka-blog-single .cbs-body .stp.stp.stp--list a.stp-btn.stp-btn,
.cicka-blog-single .cbs-body .stp.stp.stp--list a.ch-add span { font-size: 13px !important; }
