/* ECC Product Center — front end. Colors and widths come from CSS variables set inline:
   --ecc-pc-accent, --ecc-pc-max, --ecc-pc-cols. */

.ecc-pc {
	--ecc-pc-ink: #111;
	--ecc-pc-text: #4a4a4a;
	--ecc-pc-line: #e6e6e6;
	--ecc-pc-soft: #f3f3f3;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--ecc-pc-max) + 40px);
	margin: 0 auto;
	padding: 18px 20px 72px;
	color: var(--ecc-pc-text);
}
.ecc-pc *, .ecc-pc *::before, .ecc-pc *::after { box-sizing: border-box; }
.ecc-pc--embed { max-width: none; padding: 0; }
.ecc-pc a { text-decoration: none; }
.ecc-pc-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ecc-pc-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* breadcrumb */
.ecc-pc-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 15px; color: #333; }
.ecc-pc-crumbs li { margin: 0; }
.ecc-pc-crumbs li + li::before { content: ">"; margin-right: 4px; color: #777; }
.ecc-pc-crumbs a { color: #333; }
.ecc-pc-crumbs a:hover { color: var(--ecc-pc-accent); }
.ecc-pc-crumbs [aria-current] { color: #555; }

/* page head */
.ecc-pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 34px; }
.ecc-pc-head__main { min-width: 0; }
.ecc-pc-head__title { margin: 0 0 14px; color: var(--ecc-pc-ink); font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
.ecc-pc-head__intro { max-width: 980px; font-size: 17px; line-height: 1.6; }
.ecc-pc-head__intro p { margin: 0 0 8px; }
.ecc-pc-head__tagline {
	flex: none; max-width: 220px; margin: 30px 0 0; padding-bottom: 18px; position: relative;
	color: #333; font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: .04em;
	text-align: right; text-transform: uppercase;
}
.ecc-pc-head__tagline::after { content: ""; position: absolute; right: 0; bottom: 0; width: 32px; height: 3px; background: var(--ecc-pc-accent); }

/* layout */
.ecc-pc-layout { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 48px; align-items: start; }

/* category sidebar */
.ecc-pc-side { position: sticky; top: 110px; }
.ecc-pc-side__all {
	display: flex; align-items: center; gap: 12px; padding: 17px 20px;
	border-radius: 4px; background: var(--ecc-pc-accent); color: #fff !important;
	font-size: 17px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
	position: relative; z-index: 1;
}
.ecc-pc-side__all span { flex: 1; }
.ecc-pc-side__all:hover { filter: brightness(.95); }
.ecc-pc-side__list {
	margin: -4px 0 0; padding: 10px 0 8px; list-style: none; background: #fff;
	border: 1px solid var(--ecc-pc-line); border-top: 0; border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}
.ecc-pc-side__list ul { margin: 0; padding: 0 0 0 14px; list-style: none; }
.ecc-pc-side__item { margin: 0; }
.ecc-pc-side__item > a {
	display: block; padding: 14px 12px 14px 12px; border-left: 3px solid transparent;
	color: var(--ecc-pc-ink); font-size: 15px; font-weight: 600; line-height: 1.35;
}
.ecc-pc-side__item > a:hover { color: var(--ecc-pc-accent); }
.ecc-pc-side__item.is-active > a { color: var(--ecc-pc-accent); border-left-color: var(--ecc-pc-accent); }
.ecc-pc-side__item ul a { font-weight: 500; padding-top: 10px; padding-bottom: 10px; }

/* product grid + cards */
.ecc-pc-grid { display: grid; grid-template-columns: repeat(var(--ecc-pc-cols, 4), minmax(0, 1fr)); gap: 40px 34px; }
.ecc-pc-card { margin: 0; }
.ecc-pc-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.ecc-pc-card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--ecc-pc-soft); border: 1px solid #ececec; }
.ecc-pc-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ecc-pc-card__link:hover .ecc-pc-card__media img { transform: scale(1.04); }
.ecc-pc-card__body { display: flex; align-items: flex-start; gap: 12px; padding-top: 16px; }
.ecc-pc-card__text { flex: 1; min-width: 0; }
.ecc-pc-card__title { margin: 0 0 6px; color: var(--ecc-pc-ink); font-size: 19px; font-weight: 700; line-height: 1.3; }
.ecc-pc-card__link:hover .ecc-pc-card__title { color: var(--ecc-pc-accent); }
.ecc-pc-card__excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: #555; }
.ecc-pc-card__arrow { flex: none; margin-top: 30px; color: var(--ecc-pc-accent); transition: transform .2s ease; }
.ecc-pc-card__link:hover .ecc-pc-card__arrow { transform: translateX(4px); }
.ecc-pc-empty { padding: 40px 0; font-size: 17px; }

/* pagination */
.ecc-pc-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.ecc-pc-pages .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
	border: 1px solid var(--ecc-pc-line); color: var(--ecc-pc-ink); font-weight: 600;
}
.ecc-pc-pages .page-numbers.current, .ecc-pc-pages a.page-numbers:hover { background: var(--ecc-pc-accent); border-color: var(--ecc-pc-accent); color: #fff; }

/* product detail: hero */
.ecc-pc--single .ecc-pc-crumbs ol { margin-bottom: 18px; }
.ecc-pc-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ecc-pc-hero__title { margin: 0 0 14px; color: var(--ecc-pc-ink); font-size: clamp(28px, 3.2vw, 46px); font-weight: 800; line-height: 1.12; }
.ecc-pc-hero__subtitle { margin: 0 0 30px; font-size: 18px; line-height: 1.5; color: #555; }
.ecc-pc-attrs { width: 100%; margin: 0 0 34px; border: 0; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.ecc-pc-attrs th, .ecc-pc-attrs td { padding: 8px 0; border: 0; background: none; text-align: left; vertical-align: top; }
.ecc-pc-attrs th { width: 1%; padding-right: 28px; white-space: nowrap; color: var(--ecc-pc-ink); font-weight: 700; }
.ecc-pc-attrs td { color: #555; }
.ecc-pc-actions { display: flex; flex-wrap: wrap; gap: 18px 36px; }
.ecc-pc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px;
	border: 2px solid transparent; border-radius: 3px; font-size: 17px; font-weight: 700; line-height: 1.2;
	transition: filter .2s ease, background-color .2s ease, color .2s ease;
}
.ecc-pc-btn--primary { background: var(--ecc-pc-accent); border-color: var(--ecc-pc-accent); color: #fff !important; }
.ecc-pc-btn--primary:hover { filter: brightness(.92); }
.ecc-pc-btn--ghost { min-width: 196px; background: transparent; border-color: #333; color: var(--ecc-pc-ink) !important; }
.ecc-pc-btn--ghost:hover { background: var(--ecc-pc-ink); color: #fff !important; }

/* gallery (no JavaScript: radio inputs pick the slide) */
.ecc-pc-gallery { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* thumb column t, stage s (square), gap 8: five thumbs fill the stage height when 5t + 4*8 = s and t + 8 + s = 100% → t = (100% - 40px) / 6 */
.ecc-pc-gallery.has-thumbs { grid-template-columns: calc((100% - 40px) / 6) minmax(0, 1fr); }
.ecc-pc-gallery__radio { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ecc-pc-gallery__thumbs { display: flex; flex-direction: column; gap: 8px; height: 0; min-height: 100%; overflow: hidden; }
.ecc-pc-gallery.has-many .ecc-pc-gallery__thumbs { overflow-y: auto; scrollbar-width: thin; }
.ecc-pc-gallery__thumbs label { position: relative; display: block; flex: none; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid #d9d9d9; background: var(--ecc-pc-soft); cursor: pointer; }
.ecc-pc-gallery__thumbs label:hover { border-color: #999; }
.ecc-pc-gallery__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ecc-pc-gallery__stage { aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--ecc-pc-line); background: var(--ecc-pc-soft); }
.ecc-pc-slide { display: none; height: 100%; margin: 0; }
.ecc-pc-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ecc-pc-gallery__radio:nth-of-type(1):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(1),
.ecc-pc-gallery__radio:nth-of-type(2):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(2),
.ecc-pc-gallery__radio:nth-of-type(3):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(3),
.ecc-pc-gallery__radio:nth-of-type(4):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(4),
.ecc-pc-gallery__radio:nth-of-type(5):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(5),
.ecc-pc-gallery__radio:nth-of-type(6):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(6),
.ecc-pc-gallery__radio:nth-of-type(7):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(7),
.ecc-pc-gallery__radio:nth-of-type(8):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(8),
.ecc-pc-gallery__radio:nth-of-type(9):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(9),
.ecc-pc-gallery__radio:nth-of-type(10):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(10),
.ecc-pc-gallery__radio:nth-of-type(11):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(11),
.ecc-pc-gallery__radio:nth-of-type(12):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(12),
.ecc-pc-gallery__radio:nth-of-type(13):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(13),
.ecc-pc-gallery__radio:nth-of-type(14):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(14),
.ecc-pc-gallery__radio:nth-of-type(15):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(15),
.ecc-pc-gallery__radio:nth-of-type(16):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(16),
.ecc-pc-gallery__radio:nth-of-type(17):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(17),
.ecc-pc-gallery__radio:nth-of-type(18):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(18),
.ecc-pc-gallery__radio:nth-of-type(19):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(19),
.ecc-pc-gallery__radio:nth-of-type(20):checked ~ .ecc-pc-gallery__stage .ecc-pc-slide:nth-child(20) { display: block; }
.ecc-pc-gallery__radio:nth-of-type(1):checked ~ .ecc-pc-gallery__thumbs label:nth-child(1),
.ecc-pc-gallery__radio:nth-of-type(2):checked ~ .ecc-pc-gallery__thumbs label:nth-child(2),
.ecc-pc-gallery__radio:nth-of-type(3):checked ~ .ecc-pc-gallery__thumbs label:nth-child(3),
.ecc-pc-gallery__radio:nth-of-type(4):checked ~ .ecc-pc-gallery__thumbs label:nth-child(4),
.ecc-pc-gallery__radio:nth-of-type(5):checked ~ .ecc-pc-gallery__thumbs label:nth-child(5),
.ecc-pc-gallery__radio:nth-of-type(6):checked ~ .ecc-pc-gallery__thumbs label:nth-child(6),
.ecc-pc-gallery__radio:nth-of-type(7):checked ~ .ecc-pc-gallery__thumbs label:nth-child(7),
.ecc-pc-gallery__radio:nth-of-type(8):checked ~ .ecc-pc-gallery__thumbs label:nth-child(8),
.ecc-pc-gallery__radio:nth-of-type(9):checked ~ .ecc-pc-gallery__thumbs label:nth-child(9),
.ecc-pc-gallery__radio:nth-of-type(10):checked ~ .ecc-pc-gallery__thumbs label:nth-child(10),
.ecc-pc-gallery__radio:nth-of-type(11):checked ~ .ecc-pc-gallery__thumbs label:nth-child(11),
.ecc-pc-gallery__radio:nth-of-type(12):checked ~ .ecc-pc-gallery__thumbs label:nth-child(12),
.ecc-pc-gallery__radio:nth-of-type(13):checked ~ .ecc-pc-gallery__thumbs label:nth-child(13),
.ecc-pc-gallery__radio:nth-of-type(14):checked ~ .ecc-pc-gallery__thumbs label:nth-child(14),
.ecc-pc-gallery__radio:nth-of-type(15):checked ~ .ecc-pc-gallery__thumbs label:nth-child(15),
.ecc-pc-gallery__radio:nth-of-type(16):checked ~ .ecc-pc-gallery__thumbs label:nth-child(16),
.ecc-pc-gallery__radio:nth-of-type(17):checked ~ .ecc-pc-gallery__thumbs label:nth-child(17),
.ecc-pc-gallery__radio:nth-of-type(18):checked ~ .ecc-pc-gallery__thumbs label:nth-child(18),
.ecc-pc-gallery__radio:nth-of-type(19):checked ~ .ecc-pc-gallery__thumbs label:nth-child(19),
.ecc-pc-gallery__radio:nth-of-type(20):checked ~ .ecc-pc-gallery__thumbs label:nth-child(20) { border-color: var(--ecc-pc-accent); box-shadow: inset 0 0 0 1px var(--ecc-pc-accent); }
.ecc-pc-gallery__radio:focus-visible ~ .ecc-pc-gallery__stage { outline: 2px solid var(--ecc-pc-accent); outline-offset: 2px; }

/* product detail: description */
.ecc-pc-details { margin-top: 44px; }
.ecc-pc-details__bar {
	margin: 0; padding: 16px 20px; background: #000; color: #fff; text-align: center;
	font-size: clamp(22px, 3vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase;
}
.ecc-pc-details__body { max-width: 1200px; margin: 0 auto; padding-top: 0; }
.ecc-pc-details__body > *:first-child { margin-top: 0; }
.ecc-pc-details__body img { display: block; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
.ecc-pc-details__body p:has(> img:only-child),
.ecc-pc-details__body p:has(> a:only-child > img:only-child) { margin: 0; line-height: 0; }
.ecc-pc-longimage { line-height: 0; }
.ecc-pc-longimage p { margin: 0; }
.ecc-pc-longimage img { width: 100%; margin: 0; }

/* related */
.ecc-pc-related { margin-top: 64px; }
.ecc-pc-section-title { margin: 0 0 26px; color: var(--ecc-pc-ink); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.ecc-pc-related .ecc-pc-grid { --ecc-pc-cols: 4; }
.ecc-pc-related .ecc-pc-card__title { font-size: 17px; }

/* responsive */
@media (max-width: 1180px) {
	.ecc-pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; }
	.ecc-pc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
	.ecc-pc { padding-top: 14px; padding-bottom: 56px; }
	.ecc-pc-head { flex-direction: column; gap: 0; margin-bottom: 22px; }
	.ecc-pc-head__tagline { display: none; }
	.ecc-pc-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.ecc-pc-side { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
	.ecc-pc-side::-webkit-scrollbar { display: none; }
	.ecc-pc-side__all { flex: none; padding: 10px 16px; font-size: 15px; box-shadow: none; }
	.ecc-pc-side__all .ecc-pc-icon:last-child { display: none; }
	.ecc-pc-side__list, .ecc-pc-side__list ul { display: contents; }
	.ecc-pc-side__item { flex: none; }
	.ecc-pc-side__item > a { padding: 10px 14px; border: 1px solid var(--ecc-pc-line); border-radius: 4px; white-space: nowrap; font-size: 14px; }
	.ecc-pc-side__item.is-active > a { border-color: var(--ecc-pc-accent); }
	.ecc-pc-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.ecc-pc-related .ecc-pc-grid { --ecc-pc-cols: 2; }
}
@media (max-width: 700px) {
	.ecc-pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
	.ecc-pc-card__title { font-size: 16px; }
	.ecc-pc-card__excerpt { font-size: 14px; }
	.ecc-pc-card__arrow { display: none; }
	.ecc-pc-gallery.has-thumbs { grid-template-columns: minmax(0, 1fr); }
	.ecc-pc-gallery__thumbs { order: 2; flex-direction: row; height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; }
	.ecc-pc-gallery__thumbs label { width: 64px; }
	.ecc-pc-gallery__stage { order: 1; }
	.ecc-pc-actions { gap: 12px; }
	.ecc-pc-btn { flex: 1 1 100%; }
	.ecc-pc-attrs th { padding-right: 16px; white-space: normal; width: 34%; }
}
