/* Custom Product Showcase — Product Details Page */

.cps-dp-page-wrap {
	max-width: var(--cps-dp-width, 1160px);
	margin: 0 auto;
	padding: 40px 24px 70px;
	font-family: var(--cps-font, inherit);
	color: #1f1f1f;
	position: relative !important;
	isolation: isolate;
	z-index: 999 !important;
	background-color: var(--cps-dp-page-bg, #ffffff) !important;
}
.cps-dp-block {
	position: relative;
	z-index: 1;
	background-color: inherit;
}
.cps-dp-single-product, .cps-dp-single-product *, .cps-dp-single-product *::before, .cps-dp-single-product *::after { box-sizing: border-box; }

.cps-dp-block {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: flex-start;
}

/* ---------------- Section spacing variants ---------------- */
.cps-dp-spacing-compact.cps-dp-block { gap: 36px; }
.cps-dp-spacing-spacious.cps-dp-block { gap: 80px; }
.cps-dp-spacing-compact .cps-dp-tabs-section { margin-top: 34px; }
.cps-dp-spacing-comfortable .cps-dp-tabs-section { margin-top: 56px; }
.cps-dp-spacing-spacious .cps-dp-tabs-section { margin-top: 80px; }
.cps-dp-spacing-compact .cps-dp-related { margin-top: 44px; }
.cps-dp-spacing-comfortable .cps-dp-related { margin-top: 64px; }
.cps-dp-spacing-spacious .cps-dp-related { margin-top: 88px; }

.cps-dp-clear { flex-basis: 100%; height: 0; }

/* ---------------- Gallery ---------------- */
.cps-dp-gallery {
	flex: 1 1 460px;
	min-width: 320px;
	max-width: 560px;
}
.cps-dp-gallery-main {
	position: relative;
	width: 100%;
	aspect-ratio: 4/5;
	overflow: hidden;
	border-radius: 16px;
	background: #f2f2f2;
	cursor: zoom-in;
}
.cps-dp-gallery-style-card .cps-dp-gallery-main {
	box-shadow: 0 12px 32px rgba(20,20,20,.10), 0 2px 8px rgba(20,20,20,.06);
}
.cps-dp-gallery-style-minimal .cps-dp-gallery-main {
	border-radius: 6px;
	box-shadow: none;
}
.cps-dp-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .2s ease;
}
.cps-dp-gallery-main img.is-swapping { opacity: 0; }

.cps-dp-badge-overlay {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
}

.cps-dp-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.cps-dp-thumb {
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: #f2f2f2;
	flex-shrink: 0;
	transition: border-color .15s ease, transform .15s ease;
}
.cps-dp-gallery-style-minimal .cps-dp-thumb { border-radius: 5px; }
.cps-dp-thumb:hover { transform: translateY(-1px); }
.cps-dp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cps-dp-thumb.is-active { border-color: var(--cps-primary, #2f6fed); }

.cps-dp-gallery.cps-dp-thumbs-left {
	display: flex;
	flex-direction: row-reverse;
	gap: 14px;
}
.cps-dp-gallery.cps-dp-thumbs-left .cps-dp-gallery-main { flex: 1; }
.cps-dp-gallery.cps-dp-thumbs-left .cps-dp-gallery-thumbs { flex-direction: column; margin-top: 0; }
.cps-dp-gallery.cps-dp-thumbs-left .cps-dp-thumb { width: 72px; height: 72px; }

/* ---------------- Lightbox ---------------- */
.cps-dp-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(10,10,10,.9);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 30px;
}
.cps-dp-lightbox.is-open { display: flex; animation: cps-dp-fade .15s ease; }
.cps-dp-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cps-dp-lightbox-close {
	position: absolute;
	top: 20px; right: 30px;
	background: rgba(255,255,255,.1);
	border: none;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 26px;
	cursor: pointer;
	line-height: 1;
	transition: background .15s ease;
}
.cps-dp-lightbox-close:hover { background: rgba(255,255,255,.2); }

@keyframes cps-dp-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- Info panel ---------------- */
.cps-dp-info-panel {
	flex: 1 1 380px;
	min-width: 300px;
}
.cps-dp-sticky-panel .cps-dp-info-panel {
	position: sticky;
	top: 24px;
}
@media (max-width: 900px) {
	.cps-dp-sticky-panel .cps-dp-info-panel { position: static; }
}

.cps-dp-badge {
	display: inline-block;
	background: var(--cps-badge, #e0393e);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 5px 12px;
	border-radius: 999px;
}
.cps-dp-badge-overlay {
	background: var(--cps-badge, #e0393e);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 6px 13px;
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.cps-dp-badge-inline .cps-dp-badge { margin-bottom: 12px; }

.cps-dp-title { margin: 0 0 14px; line-height: 1.22; color: #141414; font-weight: 700; letter-spacing: -.01em; }
.cps-dp-title-medium { font-size: 24px; }
.cps-dp-title-large { font-size: 30px; }
.cps-dp-title-xl { font-size: 36px; }
@media (max-width: 640px) {
	.cps-dp-title-medium { font-size: 21px; }
	.cps-dp-title-large { font-size: 25px; }
	.cps-dp-title-xl { font-size: 28px; }
}

.cps-dp-price { font-size: 25px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cps-dp-price-sale { color: var(--cps-badge, #e0393e); }
.cps-dp-price-regular { color: #a3a3a3; text-decoration: line-through; font-weight: 400; font-size: 17px; }
.cps-dp-price-regular-only { color: #141414; }

.cps-dp-excerpt { color: #565656; line-height: 1.7; margin-bottom: 22px; font-size: 15px; }
.cps-dp-excerpt p:last-child { margin-bottom: 0; }

.cps-dp-option-group { margin-bottom: 20px; }
.cps-dp-option-label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #777; margin-bottom: 10px; }
.cps-dp-swatches { display: flex; flex-wrap: wrap; gap: 9px; }

.cps-dp-swatch {
	width: 34px; height: 34px;
	border-radius: 50%;
	border: 2px solid #fff;
	outline: 1px solid rgba(0,0,0,.15);
	outline-offset: 1px;
	cursor: pointer;
	background: #eee;
	font-size: 9px;
	color: #666;
	transition: outline-color .15s ease, transform .1s ease;
}
.cps-dp-swatch-square .cps-dp-swatch { border-radius: 8px; }
.cps-dp-swatch:hover { transform: translateY(-1px); }
.cps-dp-swatch.is-active { outline: 2px solid var(--cps-primary, #2f6fed); outline-offset: 2px; }

.cps-dp-size-btn {
	min-width: 44px;
	height: 40px;
	padding: 0 14px;
	border: 1.5px solid #e2e2e2;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	color: #333;
	transition: all .15s ease;
}
.cps-dp-size-btn:hover { border-color: var(--cps-primary, #2f6fed); }
.cps-dp-size-btn.is-active { border-color: var(--cps-primary, #2f6fed); background: var(--cps-primary, #2f6fed); color: #fff; }

.cps-dp-stock { font-size: 13.5px; color: #3d7a2c; margin-bottom: 6px; font-weight: 600; }
.cps-dp-oos { color: #c0392b; }
.cps-dp-sku { font-size: 13px; color: #999; margin-bottom: 18px; }

.cps-dp-quantity-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.cps-dp-quantity-row label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #777; }
.cps-dp-quantity-row input {
	width: 76px;
	padding: 10px 12px;
	border: 1.5px solid #e2e2e2;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
}
.cps-dp-quantity-row input:focus { outline: none; border-color: var(--cps-primary, #2f6fed); }

.cps-dp-enquire-btn {
	width: 100%;
	max-width: 380px;
	background: var(--cps-btn-bg, #111);
	color: var(--cps-btn-text, #fff);
	border: 2px solid var(--cps-btn-bg, #111);
	padding: 15px 22px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	border-radius: 10px;
	cursor: pointer;
	margin-bottom: 18px;
	transition: opacity .15s ease, transform .1s ease;
	letter-spacing: .01em;
}
.cps-dp-enquire-btn:hover { opacity: .88; }
.cps-dp-enquire-btn:active { transform: scale(.99); }

.cps-dp-btn-outline .cps-dp-enquire-btn {
	background: transparent;
	color: var(--cps-btn-bg, #111);
}
.cps-dp-btn-outline .cps-dp-enquire-btn:hover {
	background: var(--cps-btn-bg, #111);
	color: var(--cps-btn-text, #fff);
	opacity: 1;
}

.cps-dp-categories { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cps-dp-categories-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #999; }
.cps-dp-category-pill {
	font-size: 12.5px;
	font-weight: 600;
	color: #444;
	background: #f2f2f2;
	padding: 4px 11px;
	border-radius: 999px;
}

/* ---------------- Tabs ---------------- */
.cps-dp-tabs-section { margin-top: 56px; }

.cps-dp-tabs-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }

.cps-dp-tabs-style-underline .cps-dp-tabs-nav { border-bottom: 1.5px solid #ececec; gap: 8px; }
.cps-dp-tabs-style-underline .cps-dp-tab-btn {
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	padding: 13px 4px;
	margin-right: 22px;
	background: none;
	border: none;
	border-bottom: 2.5px solid transparent;
	cursor: pointer;
	color: #8a8a8a;
	margin-bottom: -1.5px;
	transition: color .15s ease;
}
.cps-dp-tabs-style-underline .cps-dp-tab-btn.is-active { color: var(--cps-primary, #2f6fed); border-bottom-color: var(--cps-primary, #2f6fed); }

.cps-dp-tabs-style-boxed .cps-dp-tabs-nav { background: #f2f2f2; border-radius: 12px; padding: 6px; display: inline-flex; }
.cps-dp-tabs-style-boxed .cps-dp-tab-btn {
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 18px;
	background: transparent;
	border: none;
	border-radius: 9px;
	cursor: pointer;
	color: #666;
	transition: all .15s ease;
}
.cps-dp-tabs-style-boxed .cps-dp-tab-btn.is-active { background: #fff; color: var(--cps-primary, #2f6fed); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

.cps-dp-tabs-style-simple .cps-dp-tabs-nav { gap: 26px; }
.cps-dp-tabs-style-simple .cps-dp-tab-btn {
	font-family: inherit;
	font-weight: 700;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: 12.5px;
	transition: color .15s ease;
}
.cps-dp-tabs-style-simple .cps-dp-tab-btn.is-active { color: var(--cps-primary, #2f6fed); }

.cps-dp-tab-panel { display: none; line-height: 1.75; color: #444; font-size: 15px; max-width: 760px; }
.cps-dp-tab-panel.is-active { display: block; animation: cps-dp-fade .2s ease; }
.cps-dp-tab-panel p:first-child { margin-top: 0; }

.cps-dp-info-table { border-collapse: collapse; width: 100%; max-width: 560px; border-radius: 10px; overflow: hidden; }
.cps-dp-info-table tr:nth-child(odd) { background: #fafafa; }
.cps-dp-info-table th, .cps-dp-info-table td { text-align: left; padding: 12px 16px; font-size: 14px; }
.cps-dp-info-table th { width: 180px; color: #666; font-weight: 700; }

/* ---------------- Related products ---------------- */
.cps-dp-related { margin-top: 64px; }
.cps-dp-related-title { font-size: 21px; font-weight: 700; margin-bottom: 22px; letter-spacing: -.01em; }
.cps-dp-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.cps-dp-related-card { text-decoration: none; color: inherit; display: block; transition: transform .15s ease; }
.cps-dp-related-card:hover { transform: translateY(-3px); }
.cps-dp-related-image {
	width: 100%;
	aspect-ratio: 4/5;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-color: #f2f2f2;
	margin-bottom: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.cps-dp-related-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.cps-dp-related-price { font-size: 13px; color: #777; margin-top: 3px; font-weight: 600; }

/* ---------------- Enquiry Modal ---------------- */
.cps-dp-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15,15,15,.6);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.cps-dp-modal-overlay.is-open { display: flex; }
.cps-dp-modal {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px;
	position: relative;
	font-family: var(--cps-font, inherit);
	animation: cps-dp-pop .18s ease;
	box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
@keyframes cps-dp-pop {
	from { transform: scale(.96); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.cps-dp-modal-close {
	position: absolute;
	top: 16px; right: 16px;
	background: #f4f4f4;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	transition: background .15s ease;
}
.cps-dp-modal-close:hover { background: #eaeaea; color: #111; }
.cps-dp-modal h3 { margin: 0 0 20px; font-size: 18px; padding-right: 24px; font-weight: 700; }

#cps-dp-enquiry-form { display: flex; flex-direction: column; gap: 13px; }
#cps-dp-enquiry-form label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #666; display: flex; flex-direction: column; gap: 6px; }
#cps-dp-enquiry-form input, #cps-dp-enquiry-form select, #cps-dp-enquiry-form textarea {
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	padding: 11px 13px;
	border: 1.5px solid #e2e2e2;
	border-radius: 9px;
	width: 100%;
}
#cps-dp-enquiry-form input:focus, #cps-dp-enquiry-form select:focus, #cps-dp-enquiry-form textarea:focus {
	outline: none;
	border-color: var(--cps-primary, #2f6fed);
}
.cps-dp-modal-row { display: flex; gap: 10px; }
.cps-dp-modal-row > label { flex: 1; }

.cps-dp-submit-btn {
	margin-top: 6px;
	background: var(--cps-btn-bg, #111);
	color: var(--cps-btn-text, #fff);
	border: none;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 9px;
	cursor: pointer;
	transition: opacity .15s ease;
}
.cps-dp-submit-btn:hover { opacity: .88; }
.cps-dp-submit-btn[disabled] { opacity: .6; cursor: not-allowed; }
.cps-dp-form-response { font-size: 13px; margin: 4px 0 0; min-height: 18px; }
.cps-dp-form-response.is-success { color: #2a7a2a; }
.cps-dp-form-response.is-error { color: #c0392b; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	.cps-dp-block { gap: 36px; }
	.cps-dp-gallery, .cps-dp-info-panel { flex: 1 1 100%; max-width: 100%; }
}
@media (max-width: 640px) {
	.cps-dp-page-wrap { padding: 24px 16px 50px; }
	.cps-dp-gallery.cps-dp-thumbs-left { flex-direction: column; }
	.cps-dp-gallery.cps-dp-thumbs-left .cps-dp-gallery-thumbs { flex-direction: row; margin-top: 12px; }
	.cps-dp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.cps-dp-enquire-btn { max-width: none; }
}
