/* ==========================================================================
   K2 PAINTS — PREMIUM SINGLE PRODUCT DETAILS PAGE
   Palette:
     - Ink / Navy Blue: #07225B
     - Primary Orange:  #FF7A00 (Hover: #E66E00)
     - Pure White:      #FFFFFF
     - Neutral Light:   #F8FAFC
     - Border Gray:     #E2E8F0 / #CBD5E1
     - Text Slate:      #1E293B (Headings) / #475569 (Body) / #64748B (Muted)
   Aesthetic:
     - Solid colors, subtle borders, restrained shadows, clean typography.
     - Strictly NO gradients.
     - Mobile-first, accessible, fast, high-conversion.
   ========================================================================== */

/* Page Wrapper */
.k2p-single-product-page {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #FFFFFF;
	color: #1E293B;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.k2p-pdp-container {
	width: 100%;
	position: relative;
	background: #FFFFFF;
}

/* Common Container Boundary */
.k2p-pdp-bound {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.k2p-pdp-breadcrumbs {
	width: 100%;
	background: #FFFFFF;
	padding-top: calc(var(--nav-h, 72px) + 16px);
	padding-bottom: 12px;
	border-bottom: 1px solid #F1F5F9;
}

.k2p-breadcrumb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #64748B;
}

.k2p-breadcrumb-item a {
	color: #64748B;
	text-decoration: none;
	transition: color 0.15s ease;
}

.k2p-breadcrumb-item a:hover {
	color: #07225B;
}

.k2p-breadcrumb-sep {
	color: #CBD5E1;
	user-select: none;
}

.k2p-breadcrumb-current {
	color: #07225B;
	font-weight: 600;
	max-width: 380px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ==========================================================================
   1. MAIN PRODUCT HERO
   ========================================================================== */
.k2p-pdp-hero {
	width: 100%;
	background: #FFFFFF;
	padding: 36px 0 54px 0;
}

.k2p-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
	gap: 52px;
	align-items: start;
}

/* Left Column: Image Media Stage */
.k2p-hero-media {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: calc(var(--nav-h, 72px) + 20px);
}

.k2p-hero-image-stage {
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: 480px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	box-sizing: border-box;
	overflow: hidden;
}

.k2p-hero-main-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 10px 20px rgba(7, 34, 91, 0.08));
	transition: transform 0.25s ease;
	display: block;
}

.k2p-hero-main-img:hover {
	transform: scale(1.02);
}

/* Gallery Thumbnails Strip */
.k2p-hero-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.k2p-thumb-btn {
	width: 68px;
	height: 68px;
	background: #F8FAFC;
	border: 1.5px solid #E2E8F0;
	border-radius: 6px;
	padding: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, transform 0.15s ease;
	outline: none;
	box-sizing: border-box;
}

.k2p-thumb-btn img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.k2p-thumb-btn:hover {
	border-color: #07225B;
}

.k2p-thumb-btn.is-active {
	border-color: #07225B;
	box-shadow: 0 0 0 2px rgba(7, 34, 91, 0.15);
}

/* Right Column: Product Information */
.k2p-hero-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Category & Badge Row */
.k2p-meta-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.k2p-cat-badge {
	display: inline-block;
	background: #EEF2F6;
	color: #07225B;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 4px 10px;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.k2p-cat-badge:hover {
	background: #E2E8F0;
}

.k2p-highlight-badge {
	display: inline-block;
	background: #FEF3C7;
	color: #B45309;
	border: 1px solid #FDE68A;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	border-radius: 4px;
}

/* Product Title */
.k2p-product-title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(24px, 2.7vw, 34px);
	font-weight: 700;
	line-height: 1.25;
	color: #07225B;
	margin: 0 0 14px 0;
	letter-spacing: -0.3px;
}

/* Product Description */
.k2p-product-description {
	font-size: 15px;
	line-height: 1.65;
	color: #475569;
	margin-bottom: 22px;
	max-width: 640px;
}

.k2p-product-description p {
	margin: 0;
}

/* Attributes / Specs Summary Row */
.k2p-specs-summary {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 32px;
	padding: 14px 0;
	border-top: 1px solid #E2E8F0;
	border-bottom: 1px solid #E2E8F0;
	margin-bottom: 24px;
	background: #FFFFFF;
}

.k2p-spec-item {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 13.5px;
}

.k2p-spec-label {
	color: #64748B;
	font-weight: 400;
}

.k2p-spec-val {
	color: #07225B;
	font-weight: 600;
}

/* Pack-Size Selector */
.k2p-pack-selector-wrap {
	width: 100%;
	margin-bottom: 28px;
}

.k2p-pack-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
}

.k2p-pack-label {
	font-size: 14px;
	font-weight: 600;
	color: #1E293B;
}

.k2p-pack-current {
	font-size: 14px;
	font-weight: 700;
	color: #07225B;
}

.k2p-pack-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.k2p-pack-btn {
	min-width: 68px;
	height: 42px;
	padding: 0 18px;
	border: 1.5px solid #CBD5E1;
	border-radius: 6px;
	background: #FFFFFF;
	color: #1E293B;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	transition: all 0.15s ease;
	outline: none;
	user-select: none;
	box-sizing: border-box;
}

.k2p-pack-btn:hover {
	border-color: #07225B;
	color: #07225B;
}

.k2p-pack-btn.is-selected {
	background: #07225B;
	color: #FFFFFF;
	border-color: #07225B;
	box-shadow: 0 2px 6px rgba(7, 34, 91, 0.2);
}

/* Action Buttons Row */
.k2p-actions-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin-bottom: 28px;
}

/* Primary Enquiry Button */
.k2p-btn-enquire {
	min-height: 48px;
	padding: 0 32px;
	background-color: #FF7A00;
	color: #FFFFFF;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 6px rgba(255, 122, 0, 0.25);
	outline: none;
}

.k2p-btn-enquire:hover {
	background-color: #E66E00;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 122, 0, 0.35);
}

.k2p-btn-enquire:active {
	transform: translateY(0);
}

.k2p-btn-enquire svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Secondary WhatsApp Button */
.k2p-btn-whatsapp {
	min-height: 48px;
	padding: 0 24px;
	background-color: #FFFFFF;
	color: #07225B;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	border: 1.5px solid #CBD5E1;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	text-decoration: none;
	transition: all 0.15s ease;
	outline: none;
	box-sizing: border-box;
}

.k2p-btn-whatsapp:hover {
	border-color: #07225B;
	background-color: #F8FAFC;
	color: #07225B;
}

.k2p-btn-whatsapp svg {
	width: 18px;
	height: 18px;
	color: #16A34A;
	flex-shrink: 0;
}

/* Trust Bar */
.k2p-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-top: 14px;
	border-top: 1px dashed #E2E8F0;
	width: 100%;
}

.k2p-trust-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: #64748B;
	font-weight: 500;
}

.k2p-trust-item svg {
	width: 15px;
	height: 15px;
	color: #07225B;
	flex-shrink: 0;
}

/* ==========================================================================
   2. KEY FEATURES SECTION
   ========================================================================== */
.k2p-pdp-features {
	width: 100%;
	background: #F8FAFC;
	border-top: 1px solid #E2E8F0;
	border-bottom: 1px solid #E2E8F0;
	padding: 56px 0;
}

.k2p-section-heading-wrap {
	margin-bottom: 32px;
}

.k2p-section-title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	color: #07225B;
	margin: 0 0 6px 0;
	letter-spacing: -0.3px;
}

.k2p-section-sub {
	font-size: 14.5px;
	color: #64748B;
	margin: 0;
}

.k2p-features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 40px;
}

.k2p-feature-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 20px 22px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.k2p-feature-card:hover {
	border-color: #CBD5E1;
	box-shadow: 0 4px 12px rgba(7, 34, 91, 0.05);
}

.k2p-feature-icon {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #EEF2F6;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.k2p-feature-icon svg {
	width: 16px;
	height: 16px;
	stroke: #07225B;
}

.k2p-feature-content {
	flex: 1;
}

.k2p-feature-name {
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #07225B;
	margin: 0 0 4px 0;
	line-height: 1.35;
}

.k2p-feature-text {
	font-size: 13.5px;
	line-height: 1.55;
	color: #475569;
	margin: 0;
}

/* ==========================================================================
   3. RELATED PRODUCTS SECTION
   ========================================================================== */
.k2p-pdp-related {
	width: 100%;
	background: #FFFFFF;
	padding: 56px 0 72px 0;
}

/* Balanced CSS Grid: auto-fills cleanly without awkward gaps */
.k2p-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
	align-items: stretch;
}

/* Max 4 columns on large screens */
@media (min-width: 1100px) {
	.k2p-related-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.k2p-related-grid.k2p-grid-count-1 {
		grid-template-columns: minmax(0, 320px);
	}
	.k2p-related-grid.k2p-grid-count-2 {
		grid-template-columns: repeat(2, minmax(0, 320px));
	}
	.k2p-related-grid.k2p-grid-count-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Product Card */
.k2p-related-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.k2p-related-card:hover {
	border-color: #CBD5E1;
	box-shadow: 0 8px 24px rgba(7, 34, 91, 0.08);
	transform: translateY(-3px);
}

.k2p-related-image-link {
	width: 100%;
	height: 220px;
	background: #F8FAFC;
	border-bottom: 1px solid #F1F5F9;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	text-decoration: none;
	overflow: hidden;
}

.k2p-related-img {
	max-height: 180px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.25s ease;
	display: block;
}

.k2p-related-card:hover .k2p-related-img {
	transform: scale(1.04);
}

.k2p-related-body {
	padding: 16px 18px 20px 18px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.k2p-related-cat {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748B;
	margin-bottom: 4px;
}

.k2p-related-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.35;
	color: #07225B;
	margin: 0 0 16px 0;
}

.k2p-related-title a {
	color: #07225B;
	text-decoration: none;
	transition: color 0.15s ease;
}

.k2p-related-title a:hover {
	color: #FF7A00;
}

.k2p-related-action {
	margin-top: auto;
	width: 100%;
}

.k2p-related-btn {
	width: 100%;
	height: 38px;
	background: #F1F5F9;
	color: #07225B;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	transition: all 0.15s ease;
	box-sizing: border-box;
}

.k2p-related-btn:hover {
	background: #07225B;
	color: #FFFFFF;
}

.k2p-related-btn svg {
	width: 13px;
	height: 13px;
	transition: transform 0.15s ease;
}

.k2p-related-btn:hover svg {
	transform: translateX(2px);
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS (TABLETS & MOBILE)
   Breakpoints: 1024px, 768px, 430px, 390px, 360px, 320px
   ========================================================================== */

/* Tablets / Medium Desktops (<= 1024px) */
@media (max-width: 1024px) {
	.k2p-hero-grid {
		gap: 36px;
		grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
	}

	.k2p-hero-image-stage {
		max-height: 400px;
		padding: 24px;
	}

	.k2p-features-grid {
		gap: 16px 24px;
	}
}

/* Small Tablets / Large Mobile (<= 868px) */
@media (max-width: 868px) {
	.k2p-pdp-hero {
		padding: 24px 0 40px 0;
	}

	.k2p-hero-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.k2p-hero-media {
		position: static;
		max-width: 480px;
		margin: 0 auto;
		width: 100%;
	}

	.k2p-hero-image-stage {
		max-height: 360px;
	}

	.k2p-features-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.k2p-related-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

/* Standard Mobile (<= 576px) */
@media (max-width: 576px) {
	.k2p-pdp-bound {
		padding: 0 16px;
	}

	.k2p-pdp-breadcrumbs {
		padding-top: calc(var(--nav-h, 72px) + 12px);
		padding-bottom: 10px;
	}

	.k2p-breadcrumb-list {
		font-size: 12px;
		gap: 6px;
	}

	.k2p-breadcrumb-current {
		max-width: 200px;
	}

	.k2p-pdp-hero {
		padding: 16px 0 36px 0;
	}

	.k2p-hero-image-stage {
		max-height: 300px;
		padding: 20px;
	}

	.k2p-product-title {
		font-size: 23px;
		line-height: 1.25;
		margin-bottom: 10px;
	}

	.k2p-product-description {
		font-size: 14px;
		line-height: 1.6;
		margin-bottom: 18px;
	}

	.k2p-specs-summary {
		gap: 12px 20px;
		padding: 12px 0;
		margin-bottom: 20px;
	}

	.k2p-spec-item {
		font-size: 12.5px;
	}

	.k2p-pack-buttons {
		gap: 8px;
	}

	.k2p-pack-btn {
		min-width: 60px;
		height: 38px;
		line-height: 36px;
		padding: 0 14px;
		font-size: 13px;
	}

	.k2p-actions-row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-bottom: 22px;
	}

	.k2p-btn-enquire,
	.k2p-btn-whatsapp {
		width: 100%;
		justify-content: center;
		min-height: 46px;
		font-size: 14px;
	}

	.k2p-trust-badges {
		flex-direction: column;
		gap: 8px;
	}

	.k2p-pdp-features,
	.k2p-pdp-related {
		padding: 40px 0;
	}

	.k2p-feature-card {
		padding: 16px;
		gap: 12px;
	}

	.k2p-feature-name {
		font-size: 14px;
	}

	.k2p-feature-text {
		font-size: 13px;
	}

	.k2p-related-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.k2p-related-image-link {
		height: 200px;
	}

	.k2p-related-img {
		max-height: 160px;
	}
}

/* Very Narrow Mobile (<= 360px - e.g. Galaxy Fold, iPhone SE 1st Gen) */
@media (max-width: 360px) {
	.k2p-product-title {
		font-size: 21px;
	}

	.k2p-pack-btn {
		min-width: 54px;
		padding: 0 10px;
		font-size: 12px;
	}

	.k2p-breadcrumb-current {
		max-width: 140px;
	}
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
