/* =========================================================
   SHOP PDP (single product) layout.
   Galleri venstre, sticky buy-box høyre, tabs under.
   ========================================================= */

.ec-shop-pdp-breadcrumbs { padding: 14px 0; font-size: 12px; color: var(--ec-mute); }

.ec-shop-pdp {
	padding: 8px 0 48px;
}
.ec-shop-pdp-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: flex-start;
}

/* ----- Gallery ----- */
.ec-shop-pdp-gallery-main {
	aspect-ratio: 1 / 1;
	background: var(--shop-surface);
	border-radius: var(--r-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-bottom: 12px;
	overflow: hidden;
}
.ec-shop-pdp-gallery-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.ec-shop-pdp-gallery-placeholder {
	color: var(--ec-mute-2);
	font-family: var(--font-mono);
	font-size: 12px;
}
.ec-shop-pdp-gallery-badges {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	gap: 6px;
}
.ec-shop-pdp-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}
.ec-shop-pdp-gallery-thumb {
	aspect-ratio: 1 / 1;
	background: var(--shop-surface);
	border: 1px solid var(--shop-line);
	border-radius: var(--r-md);
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: border-color .15s;
}
.ec-shop-pdp-gallery-thumb img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}
.ec-shop-pdp-gallery-thumb.is-active { border-color: var(--ec-ink); border-width: 2px; }

/* ----- Buy box ----- */
.ec-shop-pdp-buy { position: sticky; top: 80px; }
.ec-shop-pdp-brand-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.ec-shop-pdp-brand {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ec-mute);
	font-weight: 600;
}
.ec-shop-pdp-sku {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ec-mute);
}
.ec-shop-pdp-title {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
	color: var(--ec-ink);
}
.ec-shop-pdp-price-block {
	background: var(--shop-surface);
	border-radius: var(--r-lg);
	padding: 18px 20px;
	margin-bottom: 18px;
}
.ec-shop-pdp-price {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 32px;
	color: var(--ec-ink);
	line-height: 1;
}
.ec-shop-pdp-price del {
	font-weight: 400;
	font-size: 14px;
	color: var(--ec-mute);
	margin-left: 10px;
}
.ec-shop-pdp-price-vat {
	font-size: 12px;
	color: var(--ec-mute);
	margin-top: 6px;
}

.ec-shop-pdp-short {
	font-size: 14px;
	color: var(--ec-ink-3);
	margin: 0 0 18px;
	line-height: 1.6;
}
.ec-shop-pdp-short p:last-child { margin-bottom: 0; }

.ec-shop-pdp-stock {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--shop-success-soft);
	border: 1px solid var(--shop-success-soft);
	border-radius: var(--r-md);
	margin-bottom: 18px;
	font-size: 13px;
}
.ec-shop-pdp-stock-text { color: var(--ec-ink-3); line-height: 1.4; }

.ec-shop-pdp-form { margin-bottom: 18px; }
.ec-shop-pdp-qty-add {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: stretch;
}
.ec-shop-pdp-qty-add .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--shop-line);
	border-radius: var(--r-md);
	background: #FFFFFF;
}
.ec-shop-pdp-qty-add input.qty {
	border: 0;
	width: 56px;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 14px;
	outline: none;
	padding: 12px 0;
	background: transparent;
	color: var(--ec-ink);
}
.ec-shop-pdp-add { white-space: nowrap; }

.ec-shop-pdp-ship-info {
	list-style: none;
	padding: 14px 16px;
	margin: 0;
	border: 1px solid var(--shop-line);
	border-radius: var(--r-md);
	font-size: 13px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ec-shop-pdp-ship-info li {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 10px;
}
.ec-shop-pdp-ship-label { color: var(--ec-mute); }
.ec-shop-pdp-ship-val { color: var(--ec-ink-3); }
.ec-shop-pdp-ship-foot {
	margin: 8px 0 0;
	font-size: 11px;
	color: var(--ec-mute);
	line-height: 1.5;
}

/* ----- Tabs ----- */
.ec-shop-pdp-tabs { margin-top: 48px; }
.ec-shop-pdp-tab-bar {
	border-bottom: 1px solid var(--shop-line);
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.ec-shop-pdp-tab {
	padding: 14px 20px;
	font-size: 14px;
	color: var(--ec-mute);
	border: 0;
	background: transparent;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
	font-family: var(--font-ui);
	font-weight: 600;
	transition: color .15s, border-color .15s;
}
.ec-shop-pdp-tab:hover { color: var(--ec-ink); }
.ec-shop-pdp-tab.is-active {
	color: var(--ec-ink);
	border-bottom-color: var(--ec-ink);
}
.ec-shop-pdp-tab-panel {
	padding: 28px 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--ec-ink-3);
}
.ec-shop-pdp-tab-panel[hidden] { display: none; }
.ec-shop-pdp-tab-panel.is-active { display: block; }
.ec-shop-pdp-tab-panel h2,
.ec-shop-pdp-tab-panel h3 {
	font-family: var(--font-ui);
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--ec-ink);
}
.ec-shop-pdp-tab-panel h3 { font-size: 16px; }

/* ----- Spec grid ----- */
.ec-shop-pdp-spec-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
	margin: 0;
}
.ec-shop-pdp-spec-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	padding: 10px 0;
	border-bottom: 1px solid var(--shop-line-2);
	font-size: 13.5px;
}
.ec-shop-pdp-spec-row dt { color: var(--ec-mute); }
.ec-shop-pdp-spec-row dd { color: var(--ec-ink); margin: 0; }

@media (max-width: 1000px) {
	.ec-shop-pdp-grid { grid-template-columns: 1fr; gap: 32px; }
	.ec-shop-pdp-buy { position: static; }
	.ec-shop-pdp-spec-grid { grid-template-columns: 1fr; }
}
