/**
 * KernelBox — Rent/Buy section item detail (PDP).
 * Card + gallery strip layout; colors use theme tokens (--kb-*).
 */

.kb-pdp{
	padding: clamp(8px, 1.2vw, 20px) 0 clamp(40px, 5vw, 80px);
	background:
		radial-gradient(ellipse 70% 45% at 50% -8%, rgba(109, 74, 240, 0.06), transparent 55%),
		linear-gradient(180deg, #fafbff 0%, #f4f6fb 50%, #f1f4f9 100%);
}

.kb-pdp__inner{
	width: min(1180px, calc(100% - (var(--kb-gutter) * 2)));
	margin-inline: auto;
}

.kb-pdp__grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 4.5vw, 64px);
	align-items: stretch;
	width: 100%;
}

@media (min-width: 901px){
	.kb-pdp__gallery{
		margin-top: clamp(14px, 2vw, 28px);
		min-height: 100%;
	}

	.kb-pdp__main-wrap{
		flex: 1 1 auto;
		min-height: clamp(480px, 50vh, 620px);
		display: flex;
		flex-direction: column;
	}

	.kb-pdp__main{
		flex: 1 1 auto;
		aspect-ratio: auto;
		min-height: 100%;
		height: 100%;
		display: block;
		line-height: 0;
	}

	.kb-pdp__main-img,
	.kb-pdp__main-ph{
		display: block;
		width: 100%;
		height: 100%;
		min-height: 100%;
		max-height: none;
		flex: none;
		object-fit: cover;
		object-position: center;
	}

	.kb-pdp__info{
		min-height: 100%;
	}
}

@media (max-width: 900px){
	.kb-pdp__inner{
		width: min(1180px, calc(100% - (var(--kb-gutter) * 2)));
	}

	.kb-pdp__grid{
		grid-template-columns: 1fr;
	}

	.kb-pdp__gallery{
		height: auto;
		margin-top: clamp(8px, 2vw, 16px);
	}

	.kb-pdp__main-wrap{
		flex: 0 1 auto;
	}

	.kb-pdp__main{
		flex: 0 1 auto;
		aspect-ratio: 4 / 3;
		min-height: clamp(260px, 58vw, 460px);
	}

	.kb-pdp__main-img,
	.kb-pdp__main-ph{
		object-fit: contain;
	}

	.kb-pdp__info{
		height: auto;
	}

	.kb-pdp__sections{
		flex: 0 1 auto;
	}

	.kb-pdp__sections + .kb-pdp__actions{
		margin-top: 0;
	}

	.kb-pdp__actions{
		margin-top: clamp(16px, 3vw, 28px);
		flex-wrap: wrap;
	}
}

/* Gallery: hero on top, thumbnail strip below */
.kb-pdp__gallery{
	display: flex;
	flex-direction: column;
	gap: clamp(10px, 1.5vw, 14px);
	min-width: 0;
	max-width: 100%;
	width: 100%;
	height: auto;
	margin-top: 0;
}

.kb-pdp__main-wrap{
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.kb-pdp__nav{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--kb-text);
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kb-pdp__nav:hover{
	box-shadow: 0 6px 22px rgba(15, 23, 42, 0.16);
	background: #fff;
}

.kb-pdp__nav:focus-visible{
	outline: 2px solid var(--kb-primary);
	outline-offset: 2px;
}

.kb-pdp__nav--prev{
	left: clamp(8px, 1.5vw, 16px);
}

.kb-pdp__nav--next{
	right: clamp(8px, 1.5vw, 16px);
}

.kb-pdp__main{
	border-radius: clamp(10px, 1.2vw, 16px);
	background: transparent;
	box-shadow: none;
	border: none;
	overflow: hidden;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kb-pdp__main-img{
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	background: transparent;
}

.kb-pdp__main-ph{
	width: 100%;
	height: 100%;
	background: #f1f5f9;
}

.kb-pdp__main-badge{
	position: absolute;
	top: clamp(22px, 3vw, 32px);
	left: clamp(12px, 2vw, 18px);
	z-index: 1;
	font-size: 12px;
	font-weight: 800;
	padding: 7px 11px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--kb-accent), #22a884);
	color: #fff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.22) inset,
		0 4px 14px rgba(58, 199, 163, 0.35);
}

.kb-pdp__thumbs{
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 2px 8px;
	margin-top: 0;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	flex-shrink: 0;
	min-width: 0;
	max-width: 100%;
	width: 100%;
}

.kb-pdp__thumbs::-webkit-scrollbar{
	height: 6px;
}

.kb-pdp__thumbs::-webkit-scrollbar-thumb{
	background: rgba(15, 23, 42, 0.15);
	border-radius: 99px;
}

.kb-pdp__thumb{
	position: relative;
	flex: 0 0 auto;
	width: 76px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.kb-pdp__thumb:hover,
.kb-pdp__thumb:focus-visible{
	border-color: rgba(109, 74, 240, 0.45);
	box-shadow: 0 6px 18px rgba(109, 74, 240, 0.12);
	outline: none;
}

.kb-pdp__thumb.is-active{
	border-color: var(--kb-primary);
	box-shadow: 0 6px 20px rgba(109, 74, 240, 0.18);
}

.kb-pdp__thumb-img{
	display: block;
	width: 100%;
	height: 58px;
	object-fit: cover;
}

.kb-pdp__thumb-badge{
	position: absolute;
	top: 4px;
	left: 4px;
	z-index: 1;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--kb-accent), #22a884);
	color: #fff;
}

@media (max-width: 520px){
	.kb-pdp__thumb{
		width: 68px;
	}
	.kb-pdp__nav{
		width: 38px;
		height: 38px;
	}
}

/* Info column */
.kb-pdp__info{
	padding: 0;
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.kb-pdp__title,
.kb-pdp__subtitle,
.kb-pdp__price-row{
	flex-shrink: 0;
}

.kb-pdp__title{
	margin: 0 0 6px;
	font-size: clamp(1.45rem, 2.9vw, 1.95rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.18;
	color: #1e293b;
}

.kb-pdp__subtitle{
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--kb-primary, #6d4af0);
	background: rgba(109, 74, 240, 0.1);
	border: 1px solid rgba(109, 74, 240, 0.22);
	line-height: 1.2;
}

/* Stacked sections (replaces tab UI) */
.kb-pdp__sections{
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 2vw, 22px);
	margin-top: 4px;
	flex: 1 1 auto;
	min-height: 0;
}

.kb-pdp__section{
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.kb-pdp__section--tabs{
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.kb-pdp__section-title{
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: #1e293b;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(109, 74, 240, 0.14);
	flex-shrink: 0;
}

.kb-pdp__tabs{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0 20px;
	margin: 0 0 10px;
	padding: 0;
	border-bottom: 1px solid rgba(109, 74, 240, 0.14);
	flex-shrink: 0;
}

.kb-pdp__tab{
	margin: 0 0 -1px;
	padding: 0 4px 10px;
	border: none;
	border-bottom: 2px solid transparent;
	background: transparent;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--kb-muted);
	cursor: pointer;
}

.kb-pdp__tab:hover{
	color: #1e293b;
}

.kb-pdp__tab.is-active{
	color: #1e293b;
	border-bottom-color: rgba(109, 74, 240, 0.45);
}

.kb-pdp__tab-panel{
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.kb-pdp__tab-panel[hidden]{
	display: none !important;
}

.kb-pdp__desc-body.kb-pdp__specs--in-panel{
	margin-top: 0;
}

.kb-pdp__section-body{
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.kb-pdp__panel-text{
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--kb-text);
}

.kb-pdp__panel-text--muted{
	color: var(--kb-muted);
}

.kb-pdp__panel--prose{
	font-size: 14px;
	line-height: 1.65;
	color: var(--kb-text);
}

.kb-pdp__panel--prose > *:first-child{
	margin-top: 0;
}

.kb-pdp__panel--prose > *:last-child{
	margin-bottom: 0;
}

.kb-pdp__panel--prose p{
	margin: 0 0 0.85em;
}

.kb-pdp__specs--in-panel{
	margin-top: 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.kb-pdp__price-row{
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin-bottom: clamp(12px, 1.8vw, 18px);
	font-variant-numeric: tabular-nums;
}

.kb-pdp__price-old{
	font-size: 0.95rem;
	color: var(--kb-muted);
	text-decoration: line-through;
	font-weight: 500;
	order: 2;
}

.kb-pdp__price-current{
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 800;
	color: var(--kb-primary);
	letter-spacing: -0.03em;
	order: 1;
}

.kb-pdp__specs{
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

dl.kb-pdp__specs.kb-pdp__specs--in-panel{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	align-items: stretch;
	flex: 1 1 auto;
	min-height: 0;
}

dl.kb-pdp__specs.kb-pdp__specs--in-panel > .kb-pdp__spec{
	min-width: 0;
}

.kb-pdp__spec{
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	gap: 10px 12px;
	align-items: center;
	margin: 0;
}

@media (max-width: 520px){
	.kb-pdp__spec{
		grid-template-columns: 1fr;
		gap: 8px;
		align-items: stretch;
	}
}

.kb-pdp__spec-label{
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #475569;
	white-space: nowrap;
}

.kb-pdp__spec-value{
	margin: 0;
	min-width: 0;
}

.kb-pdp__spec-box{
	display: flex;
	align-items: center;
	padding: 11px 14px;
	min-height: 44px;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--kb-text);
	line-height: 1.35;
	box-shadow: none;
	transition: border-color 0.2s ease, background 0.2s ease;
	white-space: nowrap;
}

.kb-pdp__spec-box--empty{
	color: var(--kb-muted);
	font-weight: 500;
}

.kb-pdp__spec:hover .kb-pdp__spec-box,
.kb-pdp__spec:hover .kb-pdp__spec-select{
	border-color: rgba(15, 23, 42, 0.2);
	background: #fff;
}

.kb-pdp__spec-select-wrap{
	position: relative;
	display: block;
	width: 100%;
}

.kb-pdp__spec-select{
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 11px 32px 11px 14px;
	min-height: 44px;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--kb-text);
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.kb-pdp__spec-select:hover{
	background: #fff;
	border-color: rgba(15, 23, 42, 0.18);
}

.kb-pdp__spec-select:focus{
	outline: none;
	border-color: rgba(109, 74, 240, 0.45);
	box-shadow: 0 0 0 3px rgba(109, 74, 240, 0.12);
}

.kb-pdp__spec-placeholder{
	color: var(--kb-muted);
	font-weight: 500;
}

.kb-pdp__spec-select-wrap::after{
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -4px;
	border-right: 2px solid #64748b;
	border-bottom: 2px solid #64748b;
	transform: rotate(45deg);
	opacity: 0.85;
	pointer-events: none;
	z-index: 1;
}

.kb-pdp__spec:hover .kb-pdp__spec-select-wrap::after{
	border-color: #475569;
	opacity: 1;
}

.kb-pdp__spec-select-wrap:focus-within::after{
	border-color: var(--kb-primary);
}

.kb-pdp__actions{
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	gap: 10px;
	margin-top: 0;
	padding-top: clamp(8px, 1.5vw, 14px);
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	flex-shrink: 0;
}

.kb-pdp__sections + .kb-pdp__actions{
	margin-top: auto;
}

.kb-pdp__qty{
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 auto;
	height: 48px;
	border: 1px solid rgba(109, 74, 240, 0.14);
	border-radius: 999px;
	background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
	overflow: hidden;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 2px 10px rgba(15, 23, 42, 0.06);
}

.kb-pdp__qty-btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1e293b;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.kb-pdp__qty-btn:hover{
	background: rgba(109, 74, 240, 0.07);
	color: var(--kb-primary, #6d4af0);
}

.kb-pdp__qty-btn:active{
	background: rgba(109, 74, 240, 0.12);
}

.kb-pdp__qty-btn:focus-visible{
	outline: 2px solid var(--kb-primary, #6d4af0);
	outline-offset: -2px;
}

.kb-pdp__qty-input{
	width: 46px;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(15, 23, 42, 0.08);
	border-right: 1px solid rgba(15, 23, 42, 0.08);
	background: transparent;
	color: #0f172a;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-align: center;
	-moz-appearance: textfield;
}

.kb-pdp__qty-input:focus{
	outline: none;
	background: rgba(109, 74, 240, 0.04);
}

.kb-pdp__qty-input::-webkit-outer-spin-button,
.kb-pdp__qty-input::-webkit-inner-spin-button{
	-webkit-appearance: none;
	margin: 0;
}

.kb-pdp__actions .kb-pdp__btn--cart{
	flex: 0 1 auto;
	min-height: 48px;
	padding: 12px 20px;
	white-space: nowrap;
}

.kb-pdp__actions .kb-pdp__btn--order{
	flex: 1 1 auto;
	min-width: 120px;
	min-height: 48px;
	padding: 12px 22px;
	white-space: nowrap;
	justify-content: center;
}

.kb-pdp__btn--cart{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
	background: linear-gradient(135deg, var(--kb-primary, #6d4af0) 0%, var(--kb-primary-2, #5a34ef) 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(109, 74, 240, 0.32);
}

.kb-pdp__btn--cart:hover{
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 6px 18px rgba(109, 74, 240, 0.38);
}

.kb-pdp__btn--cart .kb-pdp__btn-ic{
	flex-shrink: 0;
}

.kb-pdp__btn--wishlist{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #fff;
	color: var(--kb-text);
	text-decoration: none;
	transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.kb-pdp__btn--wishlist:hover{
	transform: translateY(-1px);
	border-color: rgba(15, 23, 42, 0.2);
	background: rgba(15, 23, 42, 0.03);
}

.kb-pdp__btn--wishlist .kb-pdp__btn-ic{
	flex-shrink: 0;
}

/* Related */
.kb-pdp__related{
	margin-top: clamp(40px, 6vw, 64px);
	padding-top: clamp(28px, 4vw, 40px);
	border-top: 1px solid var(--kb-border);
}

.kb-pdp__related-title{
	margin: 0 0 20px;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--kb-text);
}

/* Related grid: fixed columns (overrides .kb-best__grid auto-fit on PDP) */
.kb-pdp__related .kb-pdp__related-grid{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2.2vw, 28px);
}

@media (max-width: 1000px){
	.kb-pdp__related .kb-pdp__related-grid{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px){
	.kb-pdp__related .kb-pdp__related-grid{
		grid-template-columns: 1fr;
	}
}

.kb-pdp__related .kb-pdp__rel-media-link{
	display: block;
	text-decoration: none;
	color: inherit;
	outline-offset: 2px;
}

.kb-pdp__related .kb-best__name a{
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
	text-decoration: none;
}

/* Lavender CTA — same as .kb-best .kb-best__btn (related has no .kb-best wrapper) */
.kb-pdp__related .kb-best__btn{
	width: auto;
	max-width: none;
	flex: 0 0 auto;
	align-self: center;
	margin-left: 0;
	padding: 12px 22px;
	font-size: 11px;
	background: linear-gradient(180deg, #fefeff 0%, #f3effc 42%, #ebe4fb 100%);
	color: #4c1d95;
	border: 1px solid rgba(109, 74, 240, 0.2);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 2px 6px rgba(109, 74, 240, 0.08),
		0 8px 18px rgba(109, 74, 240, 0.1);
	filter: none !important;
}

.kb-pdp__related .kb-best__btn-ic{
	color: #0f766e;
	opacity: 1;
}

.kb-pdp__related .kb-best__btn:hover{
	filter: none !important;
	transform: translateY(-2px);
	background: linear-gradient(180deg, #ffffff 0%, #f7f2ff 48%, #efe6ff 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 1) inset,
		0 4px 10px rgba(109, 74, 240, 0.12),
		0 12px 26px rgba(109, 74, 240, 0.14);
	color: #3b0764;
}

.kb-pdp__related .kb-best__btn:active{
	transform: translateY(0);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.85) inset,
		0 2px 5px rgba(109, 74, 240, 0.1);
}

@media (max-width: 520px){
	.kb-pdp__related .kb-best__btn{
		width: auto;
		max-width: 100%;
		margin-left: 0;
		align-self: center;
		justify-content: center;
	}
}

