/* ─── CPS Frontend Styles ──────────────────────────────────────────────────── */

/* ── Variables ── */
:root {
	--cps-primary:   #EC6441;
	--cps-primary-h: #d4532e;
	--cps-dark:      #0f172a;
	--cps-body:      #334155;
	--cps-muted:     #64748b;
	--cps-border:    #e2e8f0;
	--cps-bg:        #f8fafc;
	--cps-white:     #ffffff;
	--cps-radius:    12px;
	--cps-shadow:    0 4px 24px rgba(0,0,0,.08);
	--cps-shadow-h:  0 12px 40px rgba(0,0,0,.14);
	--cps-trans:     0.25s ease;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRODUCTS GRID  —  Image-first cards, no button, rich hover animations
   (Elementor Widget)
══════════════════════════════════════════════════════════════════════════════ */

.cps-products-wrapper { width: 100%; }

/* ── Grid ── */
.cps-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.cps-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cps-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cps-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
	.cps-products-grid,
	.cps-grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 840px) {
	.cps-products-grid,
	.cps-grid-cols-3,
	.cps-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.cps-products-grid,
	.cps-grid-cols-2,
	.cps-grid-cols-3,
	.cps-grid-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card ── */
.cps-pcard {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #fdf0ec;;
	box-shadow: 0 4px 18px rgba(0,0,0,.09);
	transition: transform .38s cubic-bezier(.25,.46,.45,.94),
	            box-shadow .38s cubic-bezier(.25,.46,.45,.94);
	will-change: transform;
}

.cps-pcard:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 24px 56px rgba(0,0,0,.28),
	            0 0 0 2px var(--cps-primary);
}

/* ── Anchor fills card — position:absolute so aspect-ratio parent is respected ── */
.cps-pcard-link {
	display: block;
	position: absolute;
	inset: 0;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}

/* ── Media layer ── */
.cps-pcard-media {
	position: absolute;
	inset: 0;
	font-size: 0;
	line-height: 0;
}

/* ── Image — fills absolute container completely ── */
.cps-pcard-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	position: absolute;
	inset: 0;
	transition: transform .55s cubic-bezier(.25,.46,.45,.94);
	will-change: transform;
}

.cps-pcard:hover .cps-pcard-img {
	transform: scale(1.08);
}

/* ── No image fallback ── */
.cps-pcard-no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fb;
	color: #ccc;
}

/* ── Gradient overlay ── */
.cps-pcard-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0,0,0,.0)  0%,
		rgba(0,0,0,.12) 55%,
		rgba(0,0,0,.68) 100%
	);
	transition: background .4s ease;
	z-index: 1;
}

.cps-pcard:hover .cps-pcard-overlay {
	background: linear-gradient(
		180deg,
		rgba(0,0,0,.0)  0%,
		rgba(0,0,0,.22) 40%,
		rgba(0,0,0,.80) 100%
	);
}

/* ── Corner accent stripe ── */
.cps-pcard::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--cps-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s cubic-bezier(.25,.46,.45,.94);
	z-index: 10;
}
.cps-pcard:hover::after { transform: scaleX(1); }

/* ── Info panel — slides up from bottom ── */
.cps-pcard-info {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	padding: 28px 20px 20px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ── Tag ── */
.cps-pcard-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--cps-primary);
	background: rgba(236,100,65,.18);
	border: 1px solid rgba(236,100,65,.35);
	border-radius: 20px;
	padding: 2px 8px;
	margin: 0;
	width: fit-content;
	backdrop-filter: blur(4px);
	line-height: 1.4;
	transition: opacity .35s ease, transform .35s ease;
}

/* ── Title ── */
.cps-pcard-title {
	font-size: clamp(15px, 1.6vw, 19px);
	font-weight: 800;
	color: #fff;
	margin: 0;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-shadow: 0 1px 8px rgba(0,0,0,.5);
	transition: color .25s;
}
.cps-pcard:hover .cps-pcard-title { color: #fff; }

/* ── Desc — hidden by default, slides in on hover ── */
.cps-pcard-desc {
	font-size: 13px;
	color: rgba(255,255,255,.82);
	line-height: 1.55;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px);
	transition: max-height .4s ease, opacity .35s ease .05s, transform .35s ease .05s;
}
.cps-pcard:hover .cps-pcard-desc {
	max-height: 120px;
	opacity: 1;
	transform: translateY(0);
}

/* ── Feature pills — hidden by default ── */
.cps-pcard-feats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(10px);
	transition: max-height .4s ease .05s, opacity .35s ease .1s, transform .35s ease .1s;
}
.cps-pcard:hover .cps-pcard-feats {
	max-height: 120px;
	opacity: 1;
	transform: translateY(0);
}

.cps-pcard-feats li {
	font-size: 11px;
	color: rgba(255,255,255,.85);
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 4px;
	padding: 3px 8px;
	backdrop-filter: blur(4px);
	white-space: nowrap;
}

/* ── Arrow indicator ── */
.cps-pcard-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--cps-primary);
	color: #fff;
	margin-top: 0;
	align-self: flex-start;
	opacity: 0;
	transform: translateX(-12px);
	transition: opacity .3s ease .1s, transform .3s ease .1s;
	box-shadow: 0 4px 14px rgba(236,100,65,.45);
}
.cps-pcard:hover .cps-pcard-arrow {
	opacity: 1;
	transform: translateX(0);
}

/* ── No products notice ── */
.cps-no-products {
	text-align: center;
	color: var(--cps-muted);
	padding: 48px 20px;
	font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SINGLE PRODUCT DETAIL  (Elementor Widget)
══════════════════════════════════════════════════════════════════════════════ */

.cps-single-product {
	font-family: inherit;
	color: var(--cps-body);
}

/* ── Top two-column layout ── */
.cps-detail-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
	margin-bottom: 48px;
}

@media (max-width: 900px) {
	.cps-detail-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Media column ── */
.cps-detail-media { display: flex; flex-direction: column; gap: 12px; }

.cps-detail-primary-image {
	border-radius: var(--cps-radius);
	overflow: hidden;
	background: var(--cps-bg);
	aspect-ratio: 4/3;
	box-shadow: var(--cps-shadow);
}

.cps-detail-primary-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.3s;
}

/* ── Gallery thumbnails ── */
.cps-detail-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cps-thumb {
	border: 2px solid var(--cps-border);
	border-radius: 8px;
	padding: 0;
	background: none;
	cursor: pointer;
	overflow: hidden;
	width: 68px;
	height: 68px;
	transition: border-color var(--cps-trans), transform var(--cps-trans);
}

.cps-thumb:hover { border-color: var(--cps-primary); transform: scale(1.05); }
.cps-thumb.active { border-color: var(--cps-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.2); }

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

/* ── Info column ── */
.cps-detail-info { display: flex; flex-direction: column; gap: 20px; }

.cps-detail-title {
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 800;
	color: var(--cps-dark);
	line-height: 1.2;
	margin: 0;
}

.cps-detail-short-desc {
	font-size: 16px;
	color: var(--cps-body);
	line-height: 1.7;
	margin: 0;
	padding: 16px;
	background: var(--cps-bg);
	border-radius: 8px;
	border-left: 4px solid var(--cps-primary);
}

/* ── Spec block inside info ── */
.cps-info-spec-block { }

.cps-spec-heading {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cps-muted);
	margin: 0 0 10px;
}

/* ── Long description section ── */
.cps-detail-section {
	margin-bottom: 40px;
}

.cps-section-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--cps-dark);
	margin: 0 0 16px;
	padding-bottom: 12px;
	position: relative;
}

.cps-section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 48px;
	height: 3px;
	background: var(--cps-primary);
	border-radius: 2px;
}

.cps-long-desc-content {
	font-size: 15px;
	line-height: 1.8;
	color: var(--cps-body);
}

.cps-long-desc-content p { margin-bottom: 16px; }
.cps-long-desc-content h2,
.cps-long-desc-content h3 { color: var(--cps-dark); margin-bottom: 12px; }

/* ── Spec grid (material / thread / finishing) ── */
.cps-detail-specs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

/* ── Spec card ── */
.cps-spec-card {
	background: var(--cps-white);
	border: 1px solid var(--cps-border);
	border-radius: var(--cps-radius);
	padding: 22px 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,.04);
	transition: box-shadow var(--cps-trans);
}

.cps-spec-card:hover { box-shadow: var(--cps-shadow); }

.cps-spec-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--cps-dark);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--cps-bg);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── Spec list (shared) ── */
.cps-spec-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cps-spec-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--cps-body);
	line-height: 1.5;
	padding: 6px 10px;
	border-radius: 6px;
	transition: background var(--cps-trans);
}

.cps-spec-item:hover { background: var(--cps-bg); }

.cps-spec-bullet {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	background: var(--cps-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

/* Features list (green bullets) */
.cps-features-list .cps-spec-bullet { background: #10b981; }
/* Material list (amber bullets) */
.cps-material-list .cps-spec-bullet { background: #f59e0b; }
/* Thread list (violet bullets) */
.cps-thread-list .cps-spec-bullet { background: #7c3aed; }
/* Finishing list (rose bullets) */
.cps-finishing-list .cps-spec-bullet { background: #e11d48; }



/* ══════════════════════════════════════════════════════════════════════════════
   STANDALONE SINGLE PRODUCT PAGE
   Header Band · Hero Image · Sidebar · Main Sections
══════════════════════════════════════════════════════════════════════════════ */

/* ── Full-width override ── */
.cps-full-width-page .site-content,
.cps-full-width-page #content,
.cps-full-width-page #primary,
.cps-full-width-page .content-area,
.cps-full-width-page main,
.cps-full-width-page [role="main"] {
    width:100%!important; max-width:100%!important;
    padding:0!important; margin:0!important; float:none!important;
}
.cps-full-width-page .sidebar,
.cps-full-width-page #secondary,
.cps-full-width-page .widget-area { display:none!important; }

#cps-product-page {
    font-family: inherit;
    background: #ffffff;
}

/* ═══════════════════════════════════
   HEADER BAND
═══════════════════════════════════ */
.cps-hdr { width: 100%; position: relative; z-index: 1; }

.cps-hdr-band {
    background-color: var(--cps-primary);
    background-image: url('../images/breadcrumb-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 305px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative gear circles watermark */
.cps-hdr-band::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 380px; height: 380px;
    border-radius: 50%;
    border: 56px solid rgba(255,255,255,.07);
    box-shadow: 0 0 0 30px rgba(255,255,255,.04);
    pointer-events: none;
}
.cps-hdr-band::after {
    content: '';
    position: absolute;
    left: -50px; bottom: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 36px solid rgba(255,255,255,.05);
    pointer-events: none;
}

.cps-hdr-band-inner {
    width: 100%;
    max-width: 100%;
    padding: 40px 48px;
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Breadcrumb — centered, text only, no links */
.cps-hdr-bc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    margin-bottom: 16px;
    letter-spacing: .02em;
}
.cps-hdr-sep { color: rgba(255,255,255,.4); }
.cps-hdr-bc-cur { color: #fff; font-weight: 700; }

.cps-hdr-title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
}

@media (max-width: 768px) {
    .cps-hdr-band       { min-height: 200px; }
    .cps-hdr-band-inner { padding: 32px 20px; }
}

/* ═══════════════════════════════════
   BODY LAYOUT (Sidebar + Main)
═══════════════════════════════════ */
.cps-body-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1320px;
    margin: 48px auto 60px;
    padding: 0 48px;
    align-items: start;
    box-sizing: border-box;
}
@media (max-width: 1024px) { .cps-body-layout { grid-template-columns: 240px 1fr; padding: 0 24px; } }
@media (max-width: 768px)  {
    .cps-body-layout { grid-template-columns: 1fr; padding: 0 16px; margin-top: 24px; }
}

/* ── No sidebar — full-width single column (when product has sub-products) ── */
.cps-body-layout.cps-no-sidebar {
    grid-template-columns: 1fr !important;
    max-width: 1320px;
}
.cps-body-layout.cps-no-sidebar .cps-sidebar { display: none !important; }

/* ── Sidebar parent back-link ── */
.cps-sidebar-parent-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 10px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cps-primary);
    text-decoration: none;
    background: rgba(236,100,65,.06);
    border-bottom: 1px solid #f0f0f2;
    transition: background .18s, padding-left .2s;
}
.cps-sidebar-parent-link:hover {
    background: rgba(236,100,65,.12);
    padding-left: 22px;
}

/* ═══════════════════════════════════
   SIDEBAR — text-only product list
═══════════════════════════════════ */
.cps-sidebar {
    position: relative;
    margin-right: 28px;
}
@media (max-width: 768px) { .cps-sidebar { margin-right: 0; margin-bottom: 28px; } }

.cps-sidebar-sticky {
    position: sticky;
    top: 24px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border: 1px solid #f0f0f2;
}

.cps-sidebar-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 20px 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #fff;
    background: var(--cps-primary);
}

.cps-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 74vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e4e4e8 transparent;
}
.cps-sidebar-list::-webkit-scrollbar { width: 3px; }
.cps-sidebar-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.cps-sidebar-item { border-bottom: 1px solid #f5f5f7; }
.cps-sidebar-item:last-child { border-bottom: none; }

/* ── Default link ── */
.cps-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 20px;
    text-decoration: none;
    transition: background .18s, padding-left .22s;
    position: relative;
}
.cps-sidebar-link:hover {
    background: #fdf3f0;
    padding-left: 26px;
}

/* ── ACTIVE item — strong highlight ── */
.cps-sidebar-item.is-active .cps-sidebar-link {
    background: linear-gradient(135deg, rgba(236,100,65,.13) 0%, rgba(236,100,65,.06) 100%);
    border-left: 4px solid var(--cps-primary);
    padding-left: 16px;
}

/* ── Dot: inactive ── */
.cps-sidebar-dot {
    flex-shrink: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #d4d6db;
    margin-top: 1px;
    transition: background .2s, transform .2s;
}
.cps-sidebar-link:hover .cps-sidebar-dot {
    background: var(--cps-primary);
    transform: scale(1.4);
}

/* ── Bullet: active with pulse ── */
.cps-sidebar-bullet {
    flex-shrink: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cps-primary);
    margin-top: 1px;
    box-shadow: 0 0 0 3px rgba(236,100,65,.22);
    animation: cps-pulse 2.2s ease-in-out infinite;
}

@keyframes cps-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(236,100,65,.22); }
    50%       { box-shadow: 0 0 0 7px rgba(236,100,65,.08); }
}

/* ── Name text ── */
.cps-sidebar-name {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.45;
    flex: 1;
    transition: color .18s;
}
.cps-sidebar-link:hover .cps-sidebar-name {
    color: var(--cps-primary);
}
.cps-sidebar-item.is-active .cps-sidebar-name {
    color: var(--cps-primary);
    font-weight: 700;
}

/* ═══════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════ */
.cps-main { min-width: 0; }

/* Shared section card wrapper */
.cps-section {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
}
.cps-section-inner {
    padding: 36px 40px;
}
@media (max-width: 640px) { .cps-section-inner { padding: 22px 20px; } }

/* ── § 1  IMAGE GRID ── */
.cps-section-gallery { padding: 28px; }

.cps-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 900px)  { .cps-img-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px)  { .cps-img-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 380px)  { .cps-img-grid { grid-template-columns: 1fr; } }

.cps-img-cell {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: #e8eaee;
    -webkit-user-select: none;
    user-select: none;
}

.cps-img-cell-inner {
    width: 100%; height: 100%;
    position: relative;
    overflow: hidden;
}

.cps-img-cell-inner img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}

/* Hover overlay with animation */
.cps-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(236,100,65,.82) 0%,
        rgba(180,60,30,.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none; /* pass all clicks through to .cps-img-cell */
}

.cps-img-overlay-content {
    text-align: center;
    transform: translateY(16px);
    transition: transform .35s ease;
    pointer-events: none;
}

.cps-img-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 50%;
    color: #fff;
    margin: 0 auto 8px;
    transition: background .2s, transform .2s;
    pointer-events: none;
}

.cps-img-overlay-text {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0;
    pointer-events: none;
}

/* Trigger animations on hover */
.cps-img-cell:hover .cps-img-cell-inner img {
    transform: scale(1.1);
}
.cps-img-cell:hover .cps-img-overlay {
    opacity: 1;
}
.cps-img-cell:hover .cps-img-overlay-content {
    transform: translateY(0);
}
.cps-img-cell:hover .cps-img-zoom-btn {
    background: rgba(255,255,255,.35);
    transform: scale(1.1);
}

/* ── § 1  PRODUCT TITLE — plain H1 only ── */
.cps-section-title {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cps-main-title {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
    color: var(--cps-dark);
    margin: 0;
    padding: 20px 0 16px;
    letter-spacing: -0.02em;
    text-align: left;
    line-height: 1.2;
    border: none !important;
    background: transparent !important;
}

/* ── § 3  SHORT DESCRIPTION ── */
.cps-section-short { text-align: left; }
.cps-tag-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--cps-primary);
    margin-bottom: 16px;
}
.cps-tag-label::before {
    content: '';
    display: block;
    width: 28px; height: 3px;
    background: var(--cps-primary);
    border-radius: 2px;
}

.cps-short-text {
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.85;
    color: var(--cps-body);
    max-width: 100%;
    margin: 0;
}

/* ── SHARED HEADING ── */
.cps-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 800;
    color: var(--cps-dark);
    margin: 0 0 24px;
    letter-spacing: -0.015em;
    text-align: left;
    justify-content: flex-start;
}
.cps-heading-bar {
    display: inline-block;
    width: 5px; height: 1.1em;
    background: var(--cps-primary);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ── § 4  LONG DESCRIPTION ── */
.cps-long-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--cps-body);
    text-align: left;
}
.cps-long-body p                { margin-bottom: 16px; }
.cps-long-body p:last-child     { margin-bottom: 0; }
.cps-long-body h2,
.cps-long-body h3               { font-weight: 700; color: var(--cps-dark); margin: 28px 0 12px; }
.cps-long-body ul, .cps-long-body ol { padding-left: 22px; margin-bottom: 16px; }
.cps-long-body li               { margin-bottom: 6px; }
.cps-long-body strong           { color: var(--cps-dark); }
.cps-long-body img              { max-width: 100%; border-radius: 10px; margin: 14px 0; display: block; }
.cps-long-body blockquote {
    border-left: 4px solid var(--cps-primary);
    margin: 20px 0; padding: 14px 20px;
    background: rgba(236,100,65,.05);
    border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--cps-muted);
}

/* ═══════════════════════════════════
   §5+ DETAIL SECTIONS — all use the same feat-card grid
═══════════════════════════════════ */

/* Features block spacing */
.cps-feat-block { margin-bottom: 0; }

/* Shared grid — same as features */
.cps-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
@media (max-width: 600px)  { .cps-feat-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px)  { .cps-feat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Shared card — all sections use this */
.cps-feat-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fb;
    border: 1px solid var(--cps-border);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cps-body);
    transition: border-color .22s, box-shadow .22s, transform .22s;
    text-align: left;
}
.cps-feat-card:hover {
    border-color: var(--cps-primary);
    box-shadow: 0 4px 14px rgba(236,100,65,.1);
    transform: translateY(-2px);
}

/* Circular icon badge */
.cps-feat-check {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--cps-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}

/* ── Custom HTML Content section ── */
.cps-section-custom-html { background: #fff; }

.cps-custom-html-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--cps-body);
}
/* Let any HTML inside be fully styled */
.cps-custom-html-body * { box-sizing: border-box; }
.cps-custom-html-body p  { margin-bottom: 14px; }
.cps-custom-html-body p:last-child { margin-bottom: 0; }
.cps-custom-html-body h1,.cps-custom-html-body h2,
.cps-custom-html-body h3,.cps-custom-html-body h4 {
    font-weight: 700; color: var(--cps-dark); margin: 22px 0 10px;
}
.cps-custom-html-body ul,.cps-custom-html-body ol {
    padding-left: 22px; margin-bottom: 14px;
}
.cps-custom-html-body li { margin-bottom: 6px; }
.cps-custom-html-body table {
    width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px;
}
.cps-custom-html-body th,.cps-custom-html-body td {
    border: 1px solid var(--cps-border);
    padding: 10px 14px; text-align: left;
}
.cps-custom-html-body th {
    background: var(--cps-bg); font-weight: 700; color: var(--cps-dark);
}
.cps-custom-html-body tr:nth-child(even) td { background: #fafbfc; }
.cps-custom-html-body img {
    max-width: 100%; border-radius: 8px; display: block; margin: 12px 0;
}
.cps-custom-html-body iframe {
    max-width: 100%; border: none; border-radius: 8px;
}
.cps-custom-html-body blockquote {
    border-left: 4px solid var(--cps-primary);
    margin: 18px 0; padding: 12px 18px;
    background: rgba(236,100,65,.04);
    border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--cps-muted);
}
.cps-custom-html-body a { color: var(--cps-primary); }
.cps-custom-html-body a:hover { text-decoration: underline; }
.cps-custom-html-body code,.cps-custom-html-body pre {
    background: #f1f5f9; border-radius: 5px; font-family: monospace; font-size: 13px;
}
.cps-custom-html-body code { padding: 2px 6px; }
.cps-custom-html-body pre  { padding: 14px; overflow-x: auto; }

/* ═══════════════════════════════════
   SUB-PRODUCTS GRID
   Same design as primary .cps-pcard
═══════════════════════════════════ */

/* Wrapper — plain, no card box */
.cps-sub-products-wrap {
    width: 100%;
    margin-bottom: 24px;
}

/* Grid — same columns as primary product grid */
.cps-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 1100px) { .cps-sub-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 840px)  { .cps-sub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .cps-sub-grid { grid-template-columns: 1fr; } }

/* Card — identical to .cps-pcard */
.cps-sub-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f0f1f3;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    transition: transform .38s cubic-bezier(.25,.46,.45,.94),
                box-shadow .38s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
    text-decoration: none !important;
    color: inherit;
    display: block;
}
.cps-sub-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 56px rgba(0,0,0,.28),
                0 0 0 2px var(--cps-primary);
}

/* Anchor fills full card */
.cps-sub-card-link {
    display: block;
    width: 100%; height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* Media layer */
.cps-sub-card-media {
    position: absolute; inset: 0;
    font-size: 0; line-height: 0;
}

/* Image */
.cps-sub-card-img {
    position: absolute; inset: 0;
    font-size: 0; line-height: 0;
}
.cps-sub-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform .55s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}
.cps-sub-card:hover .cps-sub-card-img img { transform: scale(1.08); }

/* No image fallback */
.cps-sub-card-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #f0f1f3; color: #bbb; font-size: 40px;
}

/* Gradient overlay — same as pcard */
.cps-sub-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.0)   0%,
        rgba(0,0,0,.35) 45%,
        rgba(0,0,0,.82) 100%
    );
    transition: background .4s ease;
    z-index: 1;
}
.cps-sub-card:hover .cps-sub-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.0)   0%,
        rgba(0,0,0,.45) 30%,
        rgba(0,0,0,.92) 100%
    );
}

/* Top accent stripe */
.cps-sub-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cps-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
    z-index: 10;
}
.cps-sub-card:hover::after { transform: scaleX(1); }

/* Info panel — slides up from bottom */
.cps-sub-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 20px 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Tag */
.cps-sub-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cps-primary);
    background: rgba(236,100,65,.18);
    border: 1px solid rgba(236,100,65,.35);
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 8px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

/* Title */
.cps-sub-card-title {
    font-size: clamp(13px, 1.4vw, 17px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* Desc — hidden, slides in on hover */
.cps-sub-card-desc {
    font-size: 12px;
    color: rgba(255,255,255,.82);
    line-height: 1.55;
    margin: 0 0 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height .4s ease, opacity .35s ease .05s, transform .35s ease .05s;
}
.cps-sub-card:hover .cps-sub-card-desc {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
}

/* Arrow indicator */
.cps-sub-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--cps-primary);
    color: #fff;
    align-self: flex-start;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .3s ease .1s, transform .3s ease .1s;
    box-shadow: 0 4px 14px rgba(236,100,65,.45);
}
.cps-sub-card:hover .cps-sub-card-btn {
    opacity: 1;
    transform: translateX(0);
}


/* ── Custom HTML Content section ── */
.cps-section-custom-html { background: #fff; }

.cps-custom-html-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--cps-body);
}
/* Let any HTML inside be fully styled */
.cps-custom-html-body * { box-sizing: border-box; }
.cps-custom-html-body p  { margin-bottom: 14px; }
.cps-custom-html-body p:last-child { margin-bottom: 0; }
.cps-custom-html-body h1,.cps-custom-html-body h2,
.cps-custom-html-body h3,.cps-custom-html-body h4 {
    font-weight: 700; color: var(--cps-dark); margin: 22px 0 10px;
}
.cps-custom-html-body ul,.cps-custom-html-body ol {
    padding-left: 22px; margin-bottom: 14px;
}
.cps-custom-html-body li { margin-bottom: 6px; }
.cps-custom-html-body table {
    width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px;
}
.cps-custom-html-body th,.cps-custom-html-body td {
    border: 1px solid var(--cps-border);
    padding: 10px 14px; text-align: left;
}
.cps-custom-html-body th {
    background: var(--cps-bg); font-weight: 700; color: var(--cps-dark);
}
.cps-custom-html-body tr:nth-child(even) td { background: #fafbfc; }
.cps-custom-html-body img {
    max-width: 100%; border-radius: 8px; display: block; margin: 12px 0;
}
.cps-custom-html-body iframe {
    max-width: 100%; border: none; border-radius: 8px;
}
.cps-custom-html-body blockquote {
    border-left: 4px solid var(--cps-primary);
    margin: 18px 0; padding: 12px 18px;
    background: rgba(236,100,65,.04);
    border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--cps-muted);
}
.cps-custom-html-body a { color: var(--cps-primary); }
.cps-custom-html-body a:hover { text-decoration: underline; }
.cps-custom-html-body code,.cps-custom-html-body pre {
    background: #f1f5f9; border-radius: 5px; font-family: monospace; font-size: 13px;
}
.cps-custom-html-body code { padding: 2px 6px; }
.cps-custom-html-body pre  { padding: 14px; overflow-x: auto; }


/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════════════ */
.cps-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.cps-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.cps-lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 88vh;
}

.cps-lb-stage img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
    display: block;
    opacity: 0;
    transition: opacity .25s ease;
}

.cps-lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    z-index: 1000001;
}
.cps-lb-close:hover {
    background: var(--cps-primary, #EC6441);
    border-color: var(--cps-primary, #EC6441);
}

.cps-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    z-index: 1000001;
}
.cps-lb-prev { left: 14px; }
.cps-lb-next { right: 14px; }
.cps-lb-nav:hover {
    background: var(--cps-primary, #EC6441);
    border-color: var(--cps-primary, #EC6441);
}

.cps-lb-counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .5);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    font-weight: 500;
    padding: 5px 18px;
    border-radius: 20px;
    pointer-events: none;
    letter-spacing: .06em;
    z-index: 1000001;
}

@media (max-width: 600px) {
    .cps-lb-nav { width: 40px; height: 40px; font-size: 26px; }
    .cps-lb-prev { left: 6px; }
    .cps-lb-next { right: 6px; }
}
