/* PuppyButts Guided Shopping Wizard
   Mobile-first (matches the provided mockup), scales up for desktop. */

.pbgs-wizard {
	--pbgs-green: #3f5f3f;
	--pbgs-green-dark: #2c4a2c;
	--pbgs-cream: #f6f4ee;
	--pbgs-border: #e3ded2;
	--pbgs-text: #2a2a26;
	--pbgs-muted: #7a7568;
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--pbgs-text);
	position: relative;
}

.pbgs-progress {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	font-size: 12px;
}
.pbgs-progress-step {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--pbgs-cream);
	color: var(--pbgs-muted);
	border: 1px solid var(--pbgs-border);
}
.pbgs-progress-step.is-active {
	background: var(--pbgs-green);
	color: #fff;
	border-color: var(--pbgs-green);
	font-weight: 600;
}
.pbgs-progress-step.is-done {
	color: var(--pbgs-green-dark);
	border-color: var(--pbgs-green);
}

.pbgs-back {
	background: none;
	border: none;
	color: var(--pbgs-green-dark);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 0 0 16px;
	display: inline-block;
}
.pbgs-back:hover { text-decoration: underline; }

.pbgs-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 4px;
	line-height: 1.25;
}
.pbgs-subtitle {
	color: var(--pbgs-muted);
	margin: 0 0 20px;
	font-size: 14px;
}

/* Step 1: Pet cards */
.pbgs-pet-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}
.pbgs-pet-card {
	display: flex;
	align-items: center;
	gap: 16px;
	border: 1px solid var(--pbgs-border);
	border-radius: 14px;
	padding: 16px;
	background: #fff;
	cursor: pointer;
	transition: box-shadow .15s ease, border-color .15s ease;
	text-align: left;
}
.pbgs-pet-card:hover {
	border-color: var(--pbgs-green);
	box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.pbgs-pet-icon {
	font-size: 34px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pbgs-cream);
	border-radius: 50%;
	flex-shrink: 0;
}
.pbgs-pet-label {
	font-size: 17px;
	font-weight: 700;
}
.pbgs-chevron { margin-left: auto; color: var(--pbgs-muted); font-size: 18px; }

/* Step 2: Product type list */
.pbgs-type-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pbgs-type-item {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid var(--pbgs-border);
	border-radius: 12px;
	padding: 14px 16px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
	text-align: left;
}
.pbgs-type-item:hover { border-color: var(--pbgs-green); }
.pbgs-type-item.is-featured { background: #eef3ea; border-color: #cfe0c6; }
.pbgs-type-icon { font-size: 22px; width: 34px; text-align: center; flex-shrink: 0; }
.pbgs-type-text .pbgs-type-label { font-weight: 700; font-size: 15px; }
.pbgs-type-text .pbgs-type-sub { color: var(--pbgs-muted); font-size: 13px; }

/* Step 3: Weight buttons */
.pbgs-weight-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pbgs-weight-item {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--pbgs-border);
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	cursor: pointer;
	font-weight: 700;
	font-size: 15px;
	transition: border-color .15s ease, background .15s ease;
}
.pbgs-weight-item:hover { border-color: var(--pbgs-green); background: #f7faf5; }

/* Step 4: Product grid */
#pbgs-results .pbgs-loading { color: var(--pbgs-muted); font-size: 14px; padding: 20px 0; }
.pbgs-product-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.pbgs-product-card {
	border: 1px solid var(--pbgs-border);
	border-radius: 12px;
	padding: 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.pbgs-product-link { text-decoration: none; color: inherit; }
.pbgs-product-image img { width: 100%; height: auto; border-radius: 8px; display: block; }
.pbgs-product-name {
	font-weight: 700;
	font-size: 13px;
	margin-top: 8px;
	line-height: 1.35;
	min-height: 36px;
}
.pbgs-product-price {
	font-weight: 800;
	font-size: 15px;
	margin: 6px 0 10px;
	color: var(--pbgs-green-dark);
}
.pbgs-product-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.pbgs-btn {
	display: block;
	text-align: center;
	padding: 9px 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
}
.pbgs-btn-outline { border-color: var(--pbgs-green); color: var(--pbgs-green-dark); background: #fff; }
.pbgs-btn-outline:hover { background: var(--pbgs-cream); }
.pbgs-btn-solid { background: var(--pbgs-green); color: #fff; }
.pbgs-btn-solid:hover { background: var(--pbgs-green-dark); }
.pbgs-btn-solid.added::after { content: " ✓"; }
.pbgs-empty { color: var(--pbgs-muted); }

/* ---------------- Desktop ---------------- */
@media (min-width: 860px) {
	.pbgs-wizard { max-width: 1040px; padding: 32px 24px 64px; }
	.pbgs-title { font-size: 28px; }

	.pbgs-pet-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
	.pbgs-pet-card { flex-direction: column; align-items: flex-start; padding: 22px; min-height: 150px; }
	.pbgs-pet-icon { font-size: 46px; width: 72px; height: 72px; margin-bottom: 6px; }
	.pbgs-pet-label { font-size: 19px; }
	.pbgs-chevron { display: none; }

	.pbgs-type-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

	.pbgs-weight-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

	.pbgs-product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
	.pbgs-product-name { min-height: 40px; }
}
