/* SumoDeals — one small stylesheet, no JS required. */

:root {
	--sd-blue: #2b70fa;
	--sd-blue-dark: #1d5ce0;
	--sd-yellow: #ffbc00;
	--sd-ink: #171a21;
	--sd-muted: #5b6472;
	--sd-line: #e6e8ee;
	--sd-green: #1a7f37;
	--sd-green-bg: #eaf7ee;
	--sd-red: #c0392b;
	--sd-red-bg: #fdeeec;
	--sd-radius: 10px;
}

.sd-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Sections & grid ---------- */
.sd-section { margin: 40px 0; }
.sd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sd-section-head h2 { margin: 0; font-size: 1.5rem; color: var(--sd-ink); }
.sd-view-all { font-weight: 600; color: var(--sd-blue); text-decoration: none; white-space: nowrap; }
.sd-view-all:hover { text-decoration: underline; }

.sd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 22px;
}

/* ---------- Deal card ---------- */
.sd-card {
	background: #fff;
	border: 1px solid var(--sd-line);
	border-radius: var(--sd-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s ease, transform .15s ease;
	position: relative;
}
.sd-card:hover { box-shadow: 0 10px 28px rgba(23,26,33,.10); transform: translateY(-2px); }

.sd-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: #f4f5f8; }
.sd-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sd-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sd-card-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.sd-card-title a { color: var(--sd-ink); text-decoration: none; }
.sd-card-title a:hover { color: var(--sd-blue); }
.sd-card-tagline { margin: 0; color: var(--sd-muted); font-size: .9rem; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sd-card-price { margin-top: auto; }
.sd-price { font-weight: 800; font-size: 1.15rem; color: var(--sd-ink); }
.sd-old-price { color: var(--sd-muted); margin-left: 8px; font-size: .95rem; }

.sd-badge {
	border: 1px solid #f3c1bb; color: var(--sd-red); background: var(--sd-red-bg);
	font-size: .78rem; font-weight: 700; text-align: center;
	padding: 5px 10px; border-radius: 6px;
}
.sd-badge-hero { position: absolute; top: 12px; left: 12px; }

/* ---------- Buttons ---------- */
.sd-btn {
	display: inline-block; text-align: center; text-decoration: none;
	font-weight: 700; border-radius: 8px; padding: 11px 20px; line-height: 1.2;
	transition: background .15s ease;
}
.sd-btn-view { background: var(--sd-blue); color: #fff !important; width: 100%; }
.sd-btn-view:hover { background: var(--sd-blue-dark); }
.sd-btn-buy { background: var(--sd-yellow); color: var(--sd-ink) !important; font-size: 1.05rem; padding: 14px 28px; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.sd-btn-buy:hover { filter: brightness(1.05); }
.sd-buy-wrap { margin: 26px 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sd-btn-price { font-weight: 800; font-size: 1.1rem; }

/* ---------- Stars ---------- */
.sd-stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; vertical-align: middle; }
.sd-stars-bg { color: #d7dbe2; }
.sd-stars-fill { color: var(--sd-yellow); position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
.sd-review-count { color: var(--sd-muted); font-size: .85rem; margin-left: 6px; }

/* ---------- Single review ---------- */
.sd-single { padding: 30px 0 60px; }
.sd-hero {
	display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px;
	background: #fff; border: 1px solid var(--sd-line); border-radius: var(--sd-radius);
	padding: 28px; margin-bottom: 34px; align-items: center;
}
.sd-hero-media { position: relative; border-radius: 8px; overflow: hidden; }
.sd-hero-media img { width: 100%; display: block; border-radius: 8px; }
.sd-title { margin: 6px 0 10px; font-size: 2rem; line-height: 1.15; color: var(--sd-ink); }
.sd-hero-tagline { color: var(--sd-muted); font-size: 1.05rem; margin: 0 0 12px; }
.sd-hero-rating { margin-bottom: 10px; }
.sd-hero-price { margin-bottom: 6px; }
.sd-hero-price .sd-price { font-size: 1.6rem; }
.sd-brand-links a { color: var(--sd-blue); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }

.sd-review-content { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: #2a2f38; }
.sd-review-content h2 { margin-top: 2em; color: var(--sd-ink); }
.sd-review-content img { border-radius: 8px; border: 1px solid var(--sd-line); height: auto; max-width: 100%; }

.sd-disclosure {
	background: #fffaeb; border: 1px solid #f5e2ad; color: #6b5a17;
	font-size: .88rem; padding: 10px 14px; border-radius: 8px;
}

/* ---------- Pros & Cons ---------- */
.sd-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0; }
.sd-pros, .sd-cons { border-radius: var(--sd-radius); padding: 18px 20px; }
.sd-pros { background: var(--sd-green-bg); border: 1px solid #bfe3c8; }
.sd-cons { background: var(--sd-red-bg); border: 1px solid #f3c1bb; }
.sd-pros h4 { color: var(--sd-green); margin: 0 0 10px; }
.sd-cons h4 { color: var(--sd-red); margin: 0 0 10px; }
.sd-pros ul, .sd-cons ul { margin: 0; padding-left: 20px; }
.sd-pros li { color: #14532d; margin-bottom: 6px; }
.sd-cons li { color: #7f2318; margin-bottom: 6px; }

/* ---------- Verdict ---------- */
.sd-verdict { background: #f6f8fc; border: 1px solid var(--sd-line); border-radius: var(--sd-radius); padding: 24px 26px; margin-top: 36px; }
.sd-verdict h2 { margin-top: 0; }
.sd-verdict-score { font-size: 1.1rem; }

/* ---------- Archive ---------- */
.sd-archive { padding: 30px 0 60px; }
.sd-archive-head { margin-bottom: 24px; }
.sd-archive-head h1 { color: var(--sd-ink); }
.sd-pagination { margin-top: 34px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
	.sd-hero { grid-template-columns: 1fr; padding: 18px; }
	.sd-proscons { grid-template-columns: 1fr; }
	.sd-title { font-size: 1.55rem; }
}
