/* Single product page – scoped styles */
body.single-product {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.55;
	color: #151515;
	background: linear-gradient(180deg, #ffffff, #fbfaf7);
	overflow-x: hidden;
}

body.single-product header.wp-block-template-part {
	display: none;
}

body.single-product .dd-product-page {
	--bg: #fbfaf7;
	--surface: #ffffff;
	--surface-2: #f6f3ec;
	--text: #151515;
	--muted: #5b5b5b;
	--line: rgba(0, 0, 0, 0.1);
	--gold: #d7ae55;
	--gold-2: #f2d38b;
	--teal: #31b8ad;
	--shadow: 0 20px 50px rgba(20, 20, 20, 0.1);
	--shadow-soft: 0 10px 30px rgba(20, 20, 20, 0.08);
	--r-lg: 26px;
	--r-md: 18px;
	--r-sm: 14px;
	--max: 1180px;
	--pad: 22px;
	--h1: clamp(30px, 3vw, 46px);
	--h2: clamp(22px, 2.2vw, 34px);
	--h3: 20px;
	--p: 16px;
	color: var(--text);
}

body.single-product .dd-product-page * {
	box-sizing: border-box;
}

body.single-product .dd-product-page a {
	color: inherit;
	text-decoration: none;
}

body.single-product .dd-product-page .container {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad);
}

body.single-product .dd-product-page .card,
body.single-product .dd-textbook-page .card,
body.single-product .dd-product-grid > * {
	min-width: 0;
	overflow-wrap: break-word;
}

body.single-product .dd-product-section {
	padding: 54px 0;
}

body.single-product .dd-product-section-alt {
	background: linear-gradient(180deg, var(--surface-2), #ffffff);
}

body.single-product .muted {
	color: var(--muted);
}

body.single-product .title {
	margin: 12px 0 10px;
	font-weight: 900;
	letter-spacing: -0.02em;
}

body.single-product .dd-product-page h1 {
	font-size: var(--h1);
	margin: 12px 0 10px;
	line-height: 1.08;
}

body.single-product .dd-product-page h2 {
	font-size: var(--h2);
	margin: 0 0 12px;
	line-height: 1.12;
}

body.single-product .dd-product-page h3 {
	font-size: var(--h3);
	margin: 0 0 10px;
	line-height: 1.2;
}

body.single-product .dd-product-page p {
	margin: 0 0 14px;
	font-size: var(--p);
}

body.single-product .dd-product-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-soft);
}

body.single-product .dd-product-card-pad {
	padding: 22px;
}

body.single-product .dd-product-card-soft {
	box-shadow: none;
	background: rgba(255, 255, 255, 0.75);
}

body.single-product .dd-product-kicker {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(215, 174, 85, 0.14);
	border: 1px solid rgba(215, 174, 85, 0.3);
	color: #6a4b12;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.single-product .dd-product-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(49, 184, 173, 0.12);
	border: 1px solid rgba(49, 184, 173, 0.25);
	color: #0d5e58;
	font-weight: 800;
	font-size: 12px;
}

body.single-product .dd-product-tag {
	padding: 7px 11px;
	border-radius: 999px;
	background: rgba(215, 174, 85, 0.14);
	border: 1px solid rgba(215, 174, 85, 0.3);
	color: #6a4b12;
	font-weight: 900;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

body.single-product .dd-product-meta-pill {
	padding: 7px 10px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.85);
	color: rgba(0, 0, 0, 0.65);
	font-weight: 850;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

body.single-product .dd-product-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 800;
	cursor: pointer;
	transition: 0.18s ease;
	white-space: nowrap;
}

body.single-product .dd-product-btn-primary {
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #1a140a;
	box-shadow: 0 12px 25px rgba(215, 174, 85, 0.28);
}

body.single-product .dd-product-btn-secondary {
	background: rgba(255, 255, 255, 0.75);
	border-color: rgba(0, 0, 0, 0.12);
}

body.single-product .dd-product-btn-ghost {
	background: transparent;
	border-color: rgba(0, 0, 0, 0.12);
}

/* Header */
body.single-product .dd-product-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.single-product .dd-product-nav {
	height: 78px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

body.single-product .dd-product-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 900;
	letter-spacing: -0.02em;
}

body.single-product .dd-product-logo {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(215, 174, 85, 0.35), rgba(49, 184, 173, 0.18));
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 12px 20px rgba(20, 20, 20, 0.06);
	display: grid;
	place-items: center;
	font-weight: 900;
	color: #6a4b12;
}

body.single-product .dd-product-menu {
	display: flex;
	gap: 16px;
	align-items: center;
}

body.single-product .dd-product-menu a {
	padding: 10px 10px;
	border-radius: 12px;
	color: rgba(0, 0, 0, 0.72);
	font-weight: 700;
	font-size: 14px;
}

body.single-product .dd-product-menu a:hover {
	background: rgba(0, 0, 0, 0.04);
}

body.single-product .dd-product-nav-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

body.single-product .dd-product-lang {
	display: flex;
	gap: 6px;
	padding: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.1);
}

body.single-product .dd-product-lang button {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 7px 10px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 12px;
	color: rgba(0, 0, 0, 0.62);
}

body.single-product .dd-product-lang button.active {
	background: rgba(215, 174, 85, 0.24);
	color: #6a4b12;
}

/* Breadcrumb */
body.single-product .dd-product-crumb {
	display: flex;
	gap: 10px;
	align-items: center;
	color: rgba(0, 0, 0, 0.55);
	font-weight: 700;
	font-size: 13px;
	margin: 20px 0 0;
}

body.single-product .dd-product-crumb span {
	opacity: 0.7;
}

/* Layout */
body.single-product .dd-product-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 22px;
	align-items: start;
	margin-top: 16px;
}

body.single-product .dd-product-preview {
	height: 320px;
	border-radius: 22px;
	background:
		linear-gradient(135deg, rgba(49, 184, 173, 0.18), rgba(215, 174, 85, 0.18)),
		radial-gradient(240px 160px at 25% 30%, rgba(255, 255, 255, 0.92), transparent 65%);
	border: 1px solid rgba(0, 0, 0, 0.08);
	overflow: hidden;
	display: grid;
	place-items: center;
}

body.single-product .dd-product-main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.single-product .dd-product-preview-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 12px;
}

body.single-product .dd-product-thumb {
	height: 84px;
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(215, 174, 85, 0.12), rgba(255, 255, 255, 0.92)),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 16px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

body.single-product .dd-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.single-product .dd-product-info-top {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

body.single-product .dd-product-price {
	font-weight: 950;
	font-size: 40px;
	color: #6a4b12;
	letter-spacing: -0.02em;
	margin: 10px 0 4px;
}

body.single-product .dd-product-small {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.55);
}

body.single-product .dd-product-list {
	margin: 12px 0 0;
	padding-left: 18px;
}

body.single-product .dd-product-list li {
	margin: 7px 0;
	color: var(--muted);
	font-weight: 650;
}

body.single-product .dd-product-buybox {
	position: sticky;
	top: 100px;
}

body.single-product .dd-product-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}

body.single-product .dd-product-actions .single_add_to_cart_button {
	border-radius: 999px;
	font-weight: 800;
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #1a140a;
	box-shadow: 0 12px 25px rgba(215, 174, 85, 0.28);
	border: 1px solid transparent;
	height: 46px;
	padding: 0 18px;
}

body.single-product .dd-product-actions .quantity {
	display: none;
}

body.single-product .dd-product-guarantees {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

body.single-product .dd-product-g-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 12px;
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.85);
}

body.single-product .dd-product-g-dot {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	margin-top: 4px;
	background: rgba(49, 184, 173, 0.22);
	border: 1px solid rgba(49, 184, 173, 0.35);
	flex: 0 0 auto;
}

body.single-product .dd-product-g-item b {
	display: block;
}

body.single-product .dd-product-g-item small {
	display: block;
	color: rgba(0, 0, 0, 0.55);
	font-weight: 650;
}

body.single-product .dd-product-back {
	margin-top: 14px;
}

/* Tabs */
body.single-product .dd-product-tabs {
	margin-top: 22px;
}

body.single-product .dd-product-tabs-head {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

body.single-product .dd-product-pill {
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.8);
	font-weight: 900;
	cursor: pointer;
	transition: 0.15s ease;
}

body.single-product .dd-product-pill.active {
	border-color: rgba(215, 174, 85, 0.55);
	background: rgba(215, 174, 85, 0.18);
	color: #6a4b12;
}

body.single-product .dd-product-tab-panel {
	display: none;
}

body.single-product .dd-product-tab-panel.active {
	display: block;
}

body.single-product .dd-product-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

body.single-product .dd-product-richtext p {
	margin: 0 0 12px;
}

/* Related products */
body.single-product .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-product .woocommerce ul.products li.product {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-soft);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	margin: 0;
	height: 100%;
}

body.single-product .dd-product-cta {
	padding: 26px;
	border-radius: var(--r-lg);
	background:
		radial-gradient(700px 220px at 10% 10%, rgba(49, 184, 173, 0.14), transparent 60%),
		linear-gradient(135deg, rgba(215, 174, 85, 0.2), rgba(255, 255, 255, 0.92));
	border: 1px solid rgba(215, 174, 85, 0.28);
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

body.single-product .dd-product-cta-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Footer – template-part (dd-home-footer) and pattern fallback (dd-product-footer) */
body.single-product .dd-home-footer,
body.single-product .dd-product-footer {
	padding: 46px 0 60px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(255, 255, 255, 0.75);
}

body.single-product .dd-home-footer-grid,
body.single-product .dd-product-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
	gap: 18px;
}

body.single-product .dd-home-footer-grid a,
body.single-product .dd-product-footer-grid a {
	display: block;
	padding: 6px 0;
	color: rgba(0, 0, 0, 0.68);
	font-weight: 650;
}

body.single-product .dd-home-footer-grid a:hover,
body.single-product .dd-product-footer-grid a:hover {
	color: rgba(0, 0, 0, 0.9);
}

body.single-product .dd-product-small {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.55);
}

@media (max-width: 980px) {
	body.single-product .dd-product-menu {
		display: none;
	}
	body.single-product .dd-product-grid {
		grid-template-columns: 1fr;
	}
	body.single-product .dd-product-buybox {
		position: static;
	}
	body.single-product .dd-product-grid-2 {
		grid-template-columns: 1fr;
	}
	body.single-product .woocommerce ul.products {
		grid-template-columns: 1fr;
	}
	body.single-product .dd-home-footer-grid,
	body.single-product .dd-product-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	body.single-product .dd-product-page .container,
	body.single-product .dd-textbook-page .container {
		--pad: 18px;
	}
	body.single-product .dd-home-footer-grid,
	body.single-product .dd-product-footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 400px) {
	body.single-product .dd-product-page .container,
	body.single-product .dd-textbook-page .container {
		--pad: 16px;
	}
}
