/* ============================================================
   Kasirye Labs — Single Product Page
   ============================================================ */

/* ── Layout ──────────────────────────────────────────────────── */
.kl-single-product {
	display: grid;
	grid-template-columns: 1fr 1fr 280px;
	grid-template-areas: "gallery details sidebar";
	gap: 36px;
	max-width: 1260px;
	margin: 40px auto;
	padding: 0 30px;
	align-items: start;
}

.kl-sp-gallery  { grid-area: gallery; }
.kl-sp-details  { grid-area: details; }
.kl-sp-sidebar  { grid-area: sidebar; }

/* ── Gallery ─────────────────────────────────────────────────── */
.kl-sp-gallery {
	position: sticky;
	top: 100px;
}

.kl-sp-main-wrap {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #f5f5f5;
	aspect-ratio: 1 / 1;
}

.kl-sp-zoom {
	display: block;
	width: 100%;
	height: 100%;
}

.kl-sp-zoom {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
	position: relative;
}

.kl-sp-zoom-icon {
	position: absolute;
	bottom: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(4px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1a2035;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}

.kl-sp-zoom:hover .kl-sp-zoom-icon {
	opacity: 1;
}

.kl-sp-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.25s ease;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.kl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0,0,0,0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.kl-lightbox.open {
	opacity: 1;
	pointer-events: auto;
}

.kl-lightbox-img {
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 6px;
	display: block;
	transition: opacity 0.2s;
	user-select: none;
}

.kl-lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.kl-lightbox-close:hover { background: rgba(255,255,255,0.2); }

.kl-lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.kl-lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
.kl-lightbox-prev { left: 16px; }
.kl-lightbox-next { right: 16px; }

.kl-lightbox-arrow[hidden],
.kl-lightbox-arrow.hidden { display: none; }

.kl-lightbox-counter {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	color: rgba(255,255,255,0.5);
}

.kl-sp-sale-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	background: #e8461e;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 5px;
}

.kl-sp-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.kl-sp-thumb {
	width: 68px;
	height: 68px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	background: #f5f5f5;
	cursor: pointer;
	transition: border-color 0.15s;
	flex-shrink: 0;
}

.kl-sp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kl-sp-thumb.active,
.kl-sp-thumb:hover {
	border-color: #ffbe00;
}

/* ── Details ─────────────────────────────────────────────────── */
.kl-sp-details {
	padding-top: 8px;
	font-family: 'Jost', sans-serif;
}

.kl-sp-cat {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #e8461e;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.kl-sp-title {
	font-family: 'Jost', sans-serif;
	font-size: 28px;
	font-weight: 800;
	color: #1a2035;
	line-height: 1.2;
	margin: 0 0 14px;
	letter-spacing: -0.3px;
}

/* Price row */
.kl-sp-price-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.kl-sp-price .woocommerce-Price-amount,
.kl-sp-price ins .woocommerce-Price-amount {
	font-size: 24px !important;
	font-weight: 800 !important;
	color: #1a2035 !important;
}

.kl-sp-price del .woocommerce-Price-amount {
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #aaa !important;
}

/* Stars */
.kl-sp-stars {
	display: flex;
	align-items: center;
	gap: 2px;
}

.kl-sp-rating-count {
	font-size: 12px;
	color: #888;
	margin-left: 4px;
}

/* Short description */
.kl-sp-short-desc {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
	margin-bottom: 20px;
}

/* Divider */
.kl-sp-divider {
	border: none;
	border-top: 1px solid #eee;
	margin: 20px 0;
}

/* ── Options ─────────────────────────────────────────────────── */
.kl-sp-option-group {
	margin-bottom: 20px;
}

.kl-sp-option-label {
	font-size: 12px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 10px;
}

.kl-sp-option-label strong {
	color: #1a2035;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	font-size: 12px;
}

/* Color swatches */
.kl-sp-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kl-sp-swatch {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
	box-shadow: 0 0 0 1.5px rgba(0,0,0,0.12);
	flex-shrink: 0;
}

.kl-sp-swatch.kl-swatch-light {
	box-shadow: 0 0 0 1.5px rgba(0,0,0,0.22);
}

.kl-sp-swatch:hover {
	transform: scale(1.15);
}

.kl-sp-swatch.active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffbe00;
	transform: scale(1.1);
}

/* Size pills */
.kl-sp-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kl-sp-size-btn {
	height: 36px;
	min-width: 48px;
	padding: 0 14px;
	border: 1.5px solid #ddd;
	border-radius: 6px;
	background: #fff;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #1a2035;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	white-space: nowrap;
}

.kl-sp-size-btn:hover {
	border-color: #1a2035;
}

.kl-sp-size-btn.active {
	background: #1a2035;
	border-color: #1a2035;
	color: #fff;
}

/* ── Add to cart ─────────────────────────────────────────────── */
.kl-sp-cart-wrap {
	margin-top: 24px;
}

.kl-sp-cart-wrap .cart {
	display: flex !important;
	align-items: stretch !important;
	gap: 12px !important;
	flex-wrap: nowrap !important;
}

/* Quantity stepper */
.single-product .kl-qty-wrap,
.kl-qty-wrap {
	display: flex !important;
	align-items: center !important;
	border: 1.5px solid #1a2035 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	height: 48px !important;
	min-height: 48px !important;
	background: #fff !important;
	flex-shrink: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.single-product .kl-qty-btn,
.kl-qty-btn {
	width: 42px !important;
	min-width: 42px !important;
	height: 48px !important;
	border: none !important;
	background: #fff !important;
	cursor: pointer !important;
	color: #1a2035 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 0.15s !important;
	flex-shrink: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
}

.single-product .kl-qty-btn:hover,
.kl-qty-btn:hover {
	background: #f5f5f5 !important;
}

.single-product .kl-qty-wrap input.qty,
.kl-qty-wrap input.qty {
	width: 44px !important;
	min-width: 44px !important;
	height: 46px !important;
	border: none !important;
	border-left: 1px solid #ddd !important;
	border-right: 1px solid #ddd !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-family: 'Jost', sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #1a2035 !important;
	outline: none !important;
	background: #fff !important;
	-moz-appearance: textfield !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.kl-qty-wrap input.qty::-webkit-outer-spin-button,
.kl-qty-wrap input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* Add to cart button */
.kl-sp-cart-wrap .single_add_to_cart_button {
	flex: 1 !important;
	height: 48px !important;
	background: #ffbe00 !important;
	color: #111 !important;
	border: none !important;
	border-radius: 8px !important;
	font-family: 'Jost', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px !important;
	cursor: pointer !important;
	transition: background 0.2s, transform 0.15s !important;
	text-transform: uppercase !important;
	padding: 0 28px !important;
}

.kl-sp-cart-wrap .single_add_to_cart_button:hover {
	background: #e6ab00 !important;
	transform: translateY(-1px) !important;
}

/* WhatsApp button */
.kl-sp-wa-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	height: 46px !important;
	margin-top: 10px !important;
	background: #25d366 !important;
	color: #fff !important;
	border-radius: 8px !important;
	font-family: 'Jost', sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	letter-spacing: 0.3px !important;
	transition: background 0.2s, transform 0.15s !important;
}

.kl-sp-wa-btn:hover {
	background: #1da851 !important;
	color: #fff !important;
	transform: translateY(-1px) !important;
}

/* ── Trust strip ─────────────────────────────────────────────── */
.kl-sp-trust {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.kl-sp-trust span {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #666;
	font-family: 'Jost', sans-serif;
}

.kl-sp-trust svg {
	flex-shrink: 0;
	color: #ffbe00;
}

/* SKU */
.kl-sp-sku {
	margin-top: 16px;
	font-size: 12px;
	color: #aaa;
	font-family: 'Jost', sans-serif;
}

.kl-sp-sku span {
	color: #888;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.kl-sp-sidebar {
	position: sticky;
	top: 100px;
	border: 1.5px solid #f0f0f0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

/* Header bar */
.kl-sp-sidebar-title {
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #1a2035;
	margin: 0;
	padding: 14px 16px;
	background: #fafafa;
	border-bottom: 1px solid #f0f0f0;
}

.kl-sp-sidebar-list {
	display: flex;
	flex-direction: column;
	padding: 6px 0;
}

/* Each item */
.kl-sp-sidebar-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 16px;
	text-decoration: none !important;
	transition: background 0.15s;
	border-bottom: none;
}

.kl-sp-sidebar-item:hover {
	background: #f8f9ff;
}

.kl-sp-sidebar-item:last-child { border-bottom: none; }
.kl-sp-sidebar-item:first-child { padding-top: 9px; }

/* Thumbnail */
.kl-sp-sidebar-img {
	width: 58px;
	height: 58px;
	min-width: 58px;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	border: 1px solid #eee;
	flex-shrink: 0;
}

.kl-sp-sidebar-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Info column */
.kl-sp-sidebar-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

/* Product name — force dark, no orange links */
.kl-sp-sidebar-name,
.kl-sp-sidebar-item .kl-sp-sidebar-name,
a.kl-sp-sidebar-item .kl-sp-sidebar-name {
	font-family: 'Jost', sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #1a2035 !important;
	line-height: 1.4 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	transition: color 0.15s !important;
	text-decoration: none !important;
}

.kl-sp-sidebar-item:hover .kl-sp-sidebar-name {
	color: #1a2035 !important;
}

/* Price */
.kl-sp-sidebar-price {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Jost', sans-serif;
}

.kl-sp-sidebar-price .woocommerce-Price-amount,
.kl-sp-sidebar-price bdi {
	font-size: 12px !important;
	font-weight: 800 !important;
	color: #1a2035 !important;
}

.kl-sp-sidebar-price del .woocommerce-Price-amount,
.kl-sp-sidebar-price del bdi {
	font-size: 11px !important;
	font-weight: 400 !important;
	color: #bbb !important;
	text-decoration: line-through !important;
}

/* ── Accordions ──────────────────────────────────────────────── */
.kl-sp-tabs-section {
	max-width: 1200px;
	margin: 40px auto 0;
	padding: 0 30px 60px;
}

.kl-sp-accordions {
	border-top: 1px solid #eee;
}

.kl-sp-accordion {
	border-bottom: 1px solid #eee;
}

.kl-sp-accordion-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 18px 0 !important;
	background: none !important;
	border: none !important;
	cursor: pointer !important;
	font-family: 'Jost', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #1a2035 !important;
	text-align: left !important;
	letter-spacing: 0.2px !important;
	transition: color 0.15s !important;
}

.kl-sp-accordion-header:hover {
	color: #e8461e !important;
}

.kl-acc-chevron {
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.kl-sp-accordion-header[aria-expanded="true"] .kl-acc-chevron {
	transform: rotate(180deg);
}

.kl-sp-accordion-body {
	overflow: hidden;
}

.kl-sp-accordion-body[hidden] {
	display: none;
}

.kl-sp-accordion-content {
	padding: 0 0 22px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	line-height: 1.8;
	color: #555;
}

.kl-sp-accordion-content table {
	width: 100%;
	border-collapse: collapse;
}

.kl-sp-accordion-content table th,
.kl-sp-accordion-content table td {
	padding: 8px 12px;
	border: 1px solid #eee;
	font-size: 13px;
	text-align: left;
}

.kl-sp-accordion-content table th {
	background: #fafafa;
	font-weight: 600;
	color: #1a2035;
}

/* ── Related products ────────────────────────────────────────── */
.kl-sp-related {
	background: #fafafa;
	margin-top: 60px;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	padding: 48px 0;
	width: 100vw;
}

.kl-sp-related-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
}

.kl-sp-related-title {
	font-family: 'Jost', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: #1a2035;
	letter-spacing: -0.2px;
	margin: 0 0 24px;
	text-transform: uppercase;
}

.kl-sp-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.kl-sp-related-grid .kl-ps-card-wrap {
	display: block;
}

@media (max-width: 1100px) {
	.kl-sp-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.kl-sp-related-grid { grid-template-columns: repeat(2, 1fr); }
	.kl-sp-related { padding: 36px 0; }
	.kl-sp-related-inner { padding: 0 16px; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.kl-single-product {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"gallery details"
			"sidebar sidebar";
		gap: 28px;
	}

	.kl-sp-sidebar {
		position: static;
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 20px;
		align-items: start;
	}

	.kl-sp-sidebar-list {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0 16px;
	}

	.kl-sp-sidebar-item {
		border-bottom: none;
		border-right: 1px solid #f0f0f0;
		padding: 0 16px 0 0;
	}

	.kl-sp-sidebar-item:last-child { border-right: none; padding-right: 0; }
	.kl-sp-sidebar-item:first-child { padding-top: 0; }
}

@media (max-width: 768px) {
	.kl-single-product {
		grid-template-columns: 1fr;
		grid-template-areas:
			"gallery"
			"details"
			"sidebar";
		padding: 0 16px;
		margin: 20px auto;
		gap: 24px;
	}

	.kl-sp-gallery { position: static; }

	.kl-sp-sidebar {
		grid-template-columns: 1fr;
	}

	.kl-sp-sidebar-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		padding: 12px;
	}

	.kl-sp-sidebar-item {
		padding: 10px !important;
		border-right: none !important;
		border-bottom: 1px solid #f0f0f0 !important;
		border-radius: 8px;
		background: #fafafa;
	}

	.kl-sp-sidebar-item:hover {
		background: #f0f4ff !important;
	}

	.kl-title { font-size: 22px; }
	.kl-sp-tabs-section { padding: 0 16px 40px; }
}

@media (max-width: 480px) {
	.kl-sp-thumb { width: 56px; height: 56px; }
	.kl-sp-title { font-size: 20px; }
	.kl-sp-sidebar-list {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}
