/*
 * Produktsiden (designforslag: Grace Single / Demoprodukt).
 * Galleriets format (1:1) og kolonnebredder sættes i Customizer ›
 * WooCommerce › Produktside. Her ligger kun det, Customizer ikke kan.
 */

.single-product .product-entry-wrapper {
	gap: clamp(32px, 5vw, 64px);
	align-items: flex-start;
}

/* Galleri: produktfelter er hvide. */
.single-product .woocommerce-product-gallery .ct-media-container,
.single-product .woocommerce-product-gallery .flexy-items > div,
.single-product .flexy-pills [data-flexy] {
	background: #FFFFFF;
}

/* ---------- Kolonnen til højre ---------- */
.single-product .entry-summary {
	padding-top: 12px;
}

.bb-pd-eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.bb-pd-eyebrow__collection,
.bb-pd-eyebrow__collection a {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #7A5E34;
	text-decoration: none;
}

.bb-pd-eyebrow__collection a:hover {
	color: #1A1A18;
}

.bb-pd-eyebrow__new {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bb-text-secondary);
	border: 1px solid var(--bb-border-pill);
	padding: 4px 10px;
}

.single-product .entry-summary .product_title {
	margin: 0 0 16px;
	font-family: var(--bb-font-serif);
	font-weight: 400;
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.08;
}

.single-product .entry-summary > .price,
.single-product .entry-summary .price {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 300;
	color: #1A1A18;
}

.bb-pd-sku {
	margin: -8px 0 16px;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--bb-text-secondary);
}

.bb-pd-price-note {
	margin: 0 0 28px;
	font-size: 13px;
	color: var(--bb-text-secondary);
}

.single-product .woocommerce-product-details__short-description {
	margin-bottom: 28px;
	font-size: 16px;
	line-height: 1.75;
	color: #4E4A44;
}

.bb-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: 1px;
}

/* Familier */
.bb-family {
	margin-bottom: 32px;
}

.bb-family__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin: 0 0 14px;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1A1A18;
}

.bb-family__current {
	font-size: 14px;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #4E4A44;
}

.bb-family__count {
	margin-left: auto;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--bb-text-secondary);
}

.bb-family__group {
	margin: 14px 0 8px;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bb-text-secondary);
}

.bb-family__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-family__item {
	display: block;
	width: 76px;
	height: 76px;
	padding: 4px;
	background: #FFFFFF;
	border: 1px solid #E2DCD2;
	transition: border-color 0.15s;
}

.bb-family__item:hover {
	border-color: #1A1A18;
}

.bb-family__item[aria-current="page"] {
	border-color: #1A1A18;
	box-shadow: 0 0 0 1px #1A1A18;
}

.bb-family__item:focus-visible {
	outline: 2px solid #7A5E34;
	outline-offset: 2px;
}

.bb-family__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 689px) {
	.bb-family__item {
		width: 64px;
		height: 64px;
	}
}

/* Størrelse */
.single-product table.variations,
.single-product table.variations tbody,
.single-product table.variations tr,
.single-product table.variations th,
.single-product table.variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
}

.single-product table.variations {
	margin-bottom: 8px;
}

.single-product table.variations tr {
	position: relative;
	margin-bottom: 20px;
}

.single-product table.variations th.label {
	margin-bottom: 14px;
}

.single-product table.variations th.label label {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1A1A18;
}

.bb-size-guide {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 13px;
	color: #1A1A18;
	text-underline-offset: 4px;
	text-decoration-color: var(--bb-gold-deco);
}

.bb-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

.bb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-pills[hidden] {
	display: none;
}

.bb-pill {
	min-width: 56px;
	min-height: 48px;
	padding: 0 12px;
	border: 1px solid var(--bb-border-pill);
	border-radius: 0;
	background: transparent;
	color: #1A1A18;
	font-family: var(--bb-font-sans);
	font-size: 14px;
	font-weight: 300;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.bb-pill:hover:not(:disabled) {
	border-color: #1A1A18;
}

.bb-pill[aria-pressed="true"] {
	background: #1A1A18;
	border-color: #1A1A18;
	color: #F7F4EF;
}

.bb-pill:disabled {
	color: #A49E95;
	text-decoration: line-through;
	cursor: not-allowed;
}

.bb-pill:focus-visible {
	outline: 2px solid #7A5E34;
	outline-offset: 2px;
}

.single-product .reset_variations {
	display: none !important;
}

.single-product .woocommerce-variation-price {
	display: none;
}

/* Læg i kurv (antal ændres i kurven) */
.single-product .ct-product-add-to-cart .quantity {
	display: none !important;
}

.single-product .ct-product-add-to-cart .single_add_to_cart_button,
.bb-pd-ask {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	border-radius: 0;
	font-family: var(--bb-font-sans);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.single-product .ct-product-add-to-cart .single_add_to_cart_button {
	flex: 1 1 100%;
	margin: 0;
}

.single-product .ct-product-add-to-cart .single_add_to_cart_button.disabled {
	opacity: 1;
	background: #1A1A18;
	color: #F7F4EF;
}

.single-product .ct-product-add-to-cart {
	margin-bottom: 12px;
}

.bb-pd-ask {
	margin-bottom: 32px;
	border: 1px solid #1A1A18;
	background: none;
	color: #1A1A18;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.bb-pd-ask:hover {
	background: #1A1A18;
	color: #F7F4EF;
}

/* Service */
.bb-pd-service {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0 0 32px;
	list-style: none;
	font-size: 14px;
	color: #4E4A44;
	border-bottom: 1px solid #E2DCD2;
}

.bb-pd-service li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bb-pd-service svg {
	flex: 0 0 auto;
	color: #7A5E34;
}

/* Foldbare afsnit */
.bb-pd-panel {
	border-bottom: 1px solid #E2DCD2;
}

.bb-pd-panel summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1A1A18;
	cursor: pointer;
	list-style: none;
}

.bb-pd-panel summary::-webkit-details-marker {
	display: none;
}

.bb-pd-panel summary:focus-visible {
	outline: 2px solid #7A5E34;
	outline-offset: 2px;
}

.bb-pd-panel__sign::before {
	content: "+";
	font-size: 18px;
	font-weight: 300;
}

.bb-pd-panel[open] .bb-pd-panel__sign::before {
	content: "−";
}

.bb-pd-panel__body {
	padding-bottom: 24px;
	font-size: 15px;
	line-height: 1.7;
	color: #4E4A44;
}

.bb-pd-panel__body p {
	margin: 0 0 12px;
}

.bb-pd-panel__body a,
.bb-diamond-explain a,
.bb-detail-list a,
.bb-pd-story__link {
	color: #1A1A18;
	text-decoration: underline;
	text-decoration-color: var(--bb-gold-deco);
	text-underline-offset: 4px;
}

/* ---------- Under produktet ---------- */
.bb-pd-facts,
.bb-pd-story {
	clear: both;
	margin-top: clamp(64px, 8vw, 96px);
	/* Fuld bredde uden vandret scroll. */
	box-shadow: 0 0 0 100vmax var(--bb-section-bg, #EFEAE2);
	clip-path: inset(0 -100vmax);
	background: var(--bb-section-bg, #EFEAE2);
}

.bb-pd-facts {
	padding: clamp(56px, 8vw, 96px) 0;
}

.bb-pd-facts__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 64px;
	max-width: 1240px;
	margin: 0 auto;
}

.bb-pd-facts__col {
	flex: 1 1 400px;
	min-width: 0;
}

.bb-pd-facts h2,
.bb-pd-section h2,
.bb-pd-story h2 {
	margin: 0 0 24px;
	font-family: var(--bb-font-serif);
	font-weight: 400;
	font-size: clamp(30px, 3.2vw, 40px);
	line-height: 1.1;
}

.bb-detail-list {
	margin: 0;
}

.bb-detail-list > div {
	display: flex;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid #E2DCD2;
	font-size: 15px;
}

.bb-detail-list dt {
	flex: 0 0 160px;
	margin: 0;
	font-weight: 300;
	color: var(--bb-text-secondary);
}

.bb-detail-list dd {
	flex: 1 1 auto;
	margin: 0;
}

.bb-diamond-table {
	width: 100%;
	margin-bottom: 28px;
	border-collapse: collapse;
	border: 0;
	font-size: 15px;
}

.bb-diamond-table th,
.bb-diamond-table td {
	padding: 14px 8px 14px 0;
	border: 0;
	border-bottom: 1px solid #E2DCD2;
	background: none;
	text-align: left;
	font-weight: 300;
}

.bb-diamond-table thead th {
	padding-top: 0;
	padding-bottom: 10px;
	border-bottom: 0;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bb-text-secondary);
}

.bb-diamond-table tfoot th,
.bb-diamond-table tfoot td {
	border-bottom: 0;
	font-weight: 500;
}

.bb-diamond-table .bb-dot {
	width: 10px;
	height: 10px;
	margin-right: 10px;
}

.bb-diamond-explain {
	margin: 0;
	font-size: 15px;
	line-height: 1.75;
	color: #4E4A44;
}

.bb-diamond-explain a,
.bb-diamond-explain strong {
	font-weight: 500;
}

.bb-pd-section {
	clear: both;
	padding-top: clamp(64px, 8vw, 120px);
}

.bb-pd-section h2 {
	margin-bottom: 40px;
}

/* Historien bag (mørk sektion) */
.bb-pd-story {
	--bb-section-bg: #1A1A18;
	padding: clamp(64px, 8vw, 96px) 0;
	color: #D6CFC4;
}

.bb-pd-story__inner {
	max-width: 640px;
}

.bb-pd-story__eyebrow {
	margin: 0 0 20px;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bb-gold-on-dark);
}

.bb-pd-story h2 {
	color: #F2EDE5;
}

.bb-pd-story__text {
	font-size: 16px;
	line-height: 1.75;
}

.bb-pd-story__link {
	color: #F2EDE5;
	text-decoration-color: var(--bb-gold-on-dark);
}

.bb-pd-story__link:hover {
	color: var(--bb-gold-on-dark);
}

@media (max-width: 689px) {
	.bb-detail-list dt {
		flex-basis: 120px;
	}

	.bb-pd-facts__inner {
		gap: 48px;
	}
}
