/* GGD Simple Products — front-end styles
   Accent colour is set via a CSS custom property injected by the plugin
   (Products > Settings), so this file rarely needs editing. */

:root {
	--ggd-sp-accent: #d9782d;
	--ggd-sp-text: #333333;
	--ggd-sp-muted: #666666;
	--ggd-sp-border: #e5e5e5;
}

.ggd-sp-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 20px;
	color: var(--ggd-sp-text);
}

/* Button, reused on single product pages and via [ggd_contact_button] */
.ggd-sp-button {
	display: inline-block;
	padding: 14px 28px;
	background: var(--ggd-sp-accent);
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 4px;
	border: 2px solid var(--ggd-sp-accent);
	transition: background 0.15s ease, color 0.15s ease;
}

.ggd-sp-button:hover,
.ggd-sp-button:focus {
	background: transparent;
	color: var(--ggd-sp-accent);
}

/* Single product layout */
.ggd-sp-single__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 780px) {
	.ggd-sp-single__grid {
		grid-template-columns: 1fr;
	}
	.ggd-sp-single__image {
		order: -1;
	}
}

.ggd-sp-single__title {
	color: var(--ggd-sp-accent);
	margin-top: 0;
}

.ggd-sp-single__description {
	font-size: 1.05em;
	line-height: 1.65;
	color: var(--ggd-sp-text);
}

.ggd-sp-single__cta {
	margin-top: 28px;
}

.ggd-sp-single__image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--ggd-sp-border);
}

.ggd-sp-single__back {
	margin-top: 48px;
}

.ggd-sp-single__back a {
	color: var(--ggd-sp-muted);
	text-decoration: none;
}

.ggd-sp-single__back a:hover {
	color: var(--ggd-sp-accent);
}

/* Specifications grid */
.ggd-sp-specs {
	margin-top: 56px;
	padding: 40px 0;
	background: #f5f5f5;
}

.ggd-sp-specs__title {
	text-align: center;
	margin: 0 0 28px;
	color: var(--ggd-sp-text);
}

.ggd-sp-specs__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

@media (max-width: 780px) {
	.ggd-sp-specs__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ggd-sp-specs__grid {
		grid-template-columns: 1fr;
	}
}

.ggd-sp-specs__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px 16px;
	min-height: 110px;
	border-radius: 2px;
	color: #ffffff;
}

.ggd-sp-specs__item.is-dark {
	background: #3f3f3f;
}

.ggd-sp-specs__item.is-accent {
	background: var(--ggd-sp-accent);
}

.ggd-sp-specs__label {
	font-weight: 700;
	margin-bottom: 8px;
	line-height: 1.3;
}

.ggd-sp-specs__value {
	font-size: 0.95em;
}

/* Archive grid */
.ggd-sp-archive__title {
	text-align: center;
	color: var(--ggd-sp-accent);
	margin-bottom: 32px;
}

.ggd-sp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px;
}

.ggd-sp-card {
	display: block;
	color: inherit;
	text-decoration: none;
	border: 1px solid var(--ggd-sp-border);
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ggd-sp-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ggd-sp-card__image img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.ggd-sp-card__placeholder {
	width: 100%;
	height: 190px;
	background: #f2f2f2;
}

.ggd-sp-card__body {
	padding: 18px 20px 22px;
}

.ggd-sp-card__title {
	margin: 0 0 8px;
	font-size: 1.15em;
	color: var(--ggd-sp-text);
}

.ggd-sp-card__excerpt {
	margin: 0 0 12px;
	color: var(--ggd-sp-muted);
	font-size: 0.95em;
	line-height: 1.5;
}

.ggd-sp-card__link {
	color: var(--ggd-sp-accent);
	font-weight: 700;
	font-size: 0.9em;
}
