/* Carpet Ends Catalog — matches the store's option buttons (white, grey line, navy when chosen, brass focus). */
.cect, .cect-catalog, .cect-cards, .cect-specs, .cect-about {
	--cect-ink: #18222e;
	--cect-muted: #5b6470;
	--cect-line: #c8c8c8;
	--cect-soft: #f4f2ee;
	--cect-brass: #c4922f;
	--cect-edge: #2b2f36;
	--cect-on: #18222e;
	color: var(--cect-ink);
}
.cect *, .cect-catalog *, .cect-cards * { box-sizing: border-box; }

/* Two columns, gallery left; one column on phones */
.cect-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; margin: 8px 0 32px; }
@media (max-width: 860px) { .cect-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

.cect-stage { background: var(--cect-soft); border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
.cect-stage-img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; }
/* Up to five photos (close-up, texture, three rooms) sit in one row under the big photo. */
.cect-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 72px)); gap: 8px; margin-top: 10px; }
.cect-thumb { appearance: none; padding: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; border: 1px solid var(--cect-line); border-radius: 6px; overflow: hidden; background: var(--cect-soft); cursor: pointer; }
.cect-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; }
.cect-thumb.is-on { border: 2px solid var(--cect-on); }
.cect-photo-note { font-size: 12.5px; color: var(--cect-muted); margin: 10px 0 0; line-height: 1.45; max-width: 60ch; }

.cect-brand { margin: 0 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cect-muted); }
.cect-title { margin: 0 0 8px; line-height: 1.1; text-wrap: balance; }
.cect-from { margin: 0 0 10px; font-size: 15px; color: var(--cect-muted); }
.cect-from strong { font-size: 20px; color: var(--cect-ink); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.cect-rate { margin: 0 0 18px; color: var(--cect-muted); font-variant-numeric: tabular-nums; }
.cect-rate strong { color: var(--cect-ink); }

.cect-step { margin: 0 0 18px; }
.cect-h { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.cect-cur { font-weight: 400; color: var(--cect-muted); margin-left: 6px; }

.cect-colors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
@media (max-width: 420px) { .cect-colors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cect .cect-sw { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 4px 6px; margin: 0; font: inherit; font-size: 11px; line-height: 1.15; text-transform: none; letter-spacing: normal; color: var(--cect-ink); background: #fff; border: 1px solid #e0ddd7; border-radius: 6px; cursor: pointer; box-shadow: none; min-width: 0; white-space: normal; height: auto; }
.cect-sw img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; margin: 0 !important; border-radius: 4px; background: var(--cect-soft); }
.cect-sw span { display: block; width: 100%; text-align: center; white-space: normal; overflow-wrap: break-word; }
.cect .cect-sw.is-on { background: var(--cect-on); border-color: var(--cect-on); color: #fff; font-weight: 600; }

.cect-sizes, .cect-edges { display: flex; flex-wrap: wrap; gap: 8px; }
.cect .cect-opt { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: none; letter-spacing: normal; color: var(--cect-ink); background: #fff; border: 1px solid var(--cect-line); border-radius: 6px; box-shadow: none; cursor: pointer; font-variant-numeric: tabular-nums; }
.cect .cect-opt:hover { border-color: var(--cect-ink); }
.cect .cect-opt.is-on { color: #fff; background: var(--cect-on); border-color: var(--cect-on); }
.cect .cect-opt:focus-visible, .cect-sw:focus-visible, .cect-thumb:focus-visible, .cect-add:focus-visible { outline: 2px solid var(--cect-brass); outline-offset: 2px; }
.cect-edge img { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; margin: 0 !important; }
.cect-edge span { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.cect-edge small { font-size: 12px; font-weight: 400; opacity: .75; }

.cect-custom { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; align-items: center; }
.cect-custom label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cect-custom input { width: 64px; min-height: 38px; padding: 6px 8px; border: 1px solid var(--cect-line); border-radius: 6px; font: inherit; }
.cect-hint { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--cect-muted); }

.cect-preview { background: var(--cect-soft); border-radius: 10px; padding: 8px; margin: 0 0 16px; }
.cect-draw { display: block; width: 100%; height: auto; max-height: 220px; }
.cect-draw text { font-size: 11px; fill: var(--cect-muted); font-family: inherit; }

.cect-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid #e3e0da; border-bottom: 1px solid #e3e0da; }
.cect-total { margin: 0; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cect-break { margin: 2px 0 0; font-size: 13px; color: var(--cect-muted); font-variant-numeric: tabular-nums; }
.cect .cect-add { min-height: 46px; padding: 10px 26px; border-radius: 6px; font-weight: 600; background: var(--cect-on); color: #fff; border: 0; cursor: pointer; }
.cect .cect-add:disabled { opacity: .45; cursor: not-allowed; }
.cect-note { margin: 10px 0 0; font-size: 13px; color: var(--cect-muted); }

.cect-specs { max-width: 760px; margin: 8px 0 28px; }
.cect-specs h2, .cect-about h2 { font-size: 20px; margin: 0 0 10px; }
.cect-specs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cect-specs th, .cect-specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e3e0da; vertical-align: top; }
.cect-specs th { width: 34%; font-weight: 600; color: var(--cect-muted); }
.cect-about { max-width: 760px; margin: 0 0 32px; }

/* [ce_catalog] cards */
.cect-cards { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.cect-card a { display: block; color: inherit; text-decoration: none; }
.cect-card-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #f4f2ee; }
.cect-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: opacity .35s ease; }
.cect-card-room { opacity: 0; }
.cect-card a:hover .cect-card-room, .cect-card a:focus-visible .cect-card-room { opacity: 1; }
@media (hover: none) { .cect-card-room { display: none; } }
.cect-card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 2px 0; }
.cect-card-name { font-size: 17px; }
.cect-card-brand { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5b6470; }
.cect-card-price { font-size: 14px; }
.cect-card-dots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.cect-card-dots img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; margin: 0 !important; box-shadow: 0 0 0 1px rgba(24, 34, 46, .18); }
.cect-card-dots em { font-style: normal; font-size: 11.5px; color: #50575e; margin-left: 2px; }
.cect-card-count { font-size: 12px; color: #5b6470; }
@media (prefers-reduced-motion: reduce) { .cect-card-img img { transition: none; } }

/* Theme overrides (Hello Elementor): no second page title, plain thumbnail frames, whole words on color tiles */
body.single-ce_style .page-header { display: none; }
.cect .cect-thumb { margin: 0; padding: 0; border: 1px solid var(--cect-line); border-radius: 6px; background: var(--cect-soft); box-shadow: none; }
.cect .cect-thumb:hover { border-color: var(--cect-ink); background: var(--cect-soft); }
.cect .cect-thumb.is-on { border: 2px solid var(--cect-on); }
.cect .cect-sw { padding: 4px 2px 6px; font-size: 10.5px; }
.cect-sw span { overflow-wrap: normal; word-break: normal; }

/* [ce_catalog] filter bar */
.cect-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 24px; padding: 14px 0; border-top: 1px solid #e3e0da; border-bottom: 1px solid #e3e0da; }
.cect-bar[hidden] { display: none; }
.cect-search { flex: 1 1 260px; margin: 0; }
.cect-catalog .cect-search input { width: 100%; min-height: 42px; padding: 8px 12px; font: inherit; font-size: 15px; color: var(--cect-ink); background: #fff; border: 1px solid var(--cect-line); border-radius: 6px; }
.cect-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cect-catalog .cect-chip { appearance: none; min-height: 40px; margin: 0; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: none; letter-spacing: normal; color: var(--cect-ink); background: #fff; border: 1px solid var(--cect-line); border-radius: 999px; box-shadow: none; cursor: pointer; }
.cect-catalog .cect-chip:hover { border-color: var(--cect-ink); background: #fff; color: var(--cect-ink); }
.cect-catalog .cect-chip.is-on { color: #fff; background: var(--cect-on); border-color: var(--cect-on); }
.cect-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--cect-muted); }
.cect-catalog .cect-sort select { min-height: 40px; padding: 6px 10px; font: inherit; font-size: 14px; color: var(--cect-ink); background: #fff; border: 1px solid var(--cect-line); border-radius: 6px; }
.cect-count { margin: 0 0 0 auto; font-size: 14px; color: var(--cect-muted); font-variant-numeric: tabular-nums; }
.cect-catalog .cect-chip:focus-visible, .cect-catalog input:focus-visible, .cect-catalog select:focus-visible, .cect-card a:focus-visible { outline: 2px solid var(--cect-brass); outline-offset: 2px; }
.cect-none { padding: 24px 0; color: var(--cect-muted); }
.cect-card[hidden] { display: none; }
.cect-card-price small { font-size: 12px; color: var(--cect-muted); margin-left: 2px; }
.cect-card-name { line-height: 1.25; }
@media (max-width: 600px) {
	.cect-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.cect-card-name { font-size: 15px; }
	.cect-card-dots img:nth-child(n+6) { display: none; }
	.cect-count { margin-left: 0; flex-basis: 100%; }
}
/* Theme underlines links: keep card text clean, underline the name on hover only */
.cect-catalog .cect-card a, .cect-catalog .cect-card a * { text-decoration: none !important; }
.cect-catalog .cect-card a:hover .cect-card-name, .cect-catalog .cect-card a:focus-visible .cect-card-name { text-decoration: underline !important; text-underline-offset: 3px; }

/* Strip pricing note and "use the whole piece" */
.cect-strip { background: #fbf8f1; border: 1px solid #eadfc6; border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.cect-strip[hidden] { display: none; }
.cect-strip p { margin: 0 0 10px; }
.cect-strip .cect-strip-h { font-weight: 600; margin: 0 0 4px; }
.cect-strip p + .cect-strip-h { margin-top: 14px; }
.cect-extras { display: grid; gap: 6px; margin: 0 0 10px; }
.cect-extra { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--cect-line); border-radius: 6px; cursor: pointer; }
.cect-extra:has(input:checked) { border-color: var(--cect-on); box-shadow: inset 0 0 0 1px var(--cect-on); }
.cect-extra span { flex: 1; }
.cect-extra b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cect-extra input { margin: 0; accent-color: var(--cect-on); }
.cect-strip .cect-bigger { margin: 0; color: var(--cect-muted); }
.cect .cect-go-big { appearance: none; display: inline-block; margin: 6px 0 0; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--cect-ink); background: #fff; border: 1px solid var(--cect-ink); border-radius: 6px; cursor: pointer; text-transform: none; letter-spacing: normal; }
.cect .cect-go-big:hover { background: var(--cect-ink); color: #fff; }
.cect .cect-go-big:focus-visible, .cect-extra:has(input:focus-visible) { outline: 2px solid var(--cect-brass); outline-offset: 2px; }
.cect-buy.is-busy .cect-total { opacity: .45; }

/* Photo opens the viewer */
.cect .cect-stage-btn { all: unset; position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.cect .cect-stage-btn:focus-visible { outline: 2px solid var(--cect-brass); outline-offset: -2px; }
