/*
 * Sufi Max Catalog: front-end components.
 * Self-contained, so it works in any theme. The Sufi Max Fabrics theme sets the --smc-* tokens.
 * Quiet surfaces: 1px borders, no heavy shadows, one navy for actions, green only for WhatsApp.
 */
:root {
	--smc-red: #B42318;
	--smc-red-dark: #B42318;
	--smc-blue: #1D3461;
	--smc-ink: #222326;
	--smc-muted: #55575E;
	--smc-faint: #71737A;
	--smc-line: #E4E4E7;
	--smc-field: #C8C9CE;
	--smc-panel: #F4F4F5;
	--smc-paper: #FFFFFF;
	--smc-ok: #1E7A4C;
	--smc-wa: #1E7A4C;
	--smc-radius: 10px;
	--smc-radius-sm: 8px;
	--smc-focus: 0 0 0 3px rgba(29, 52, 97, .22);
}

.smc-site .screen-reader-text,
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}

/* ---------- Buttons ---------- */
.smc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: 0 20px; border-radius: var(--smc-radius-sm);
	border: 1.5px solid transparent; font: inherit; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; text-align: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.smc-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--smc-blue); }
.smc-btn--primary { background: var(--smc-blue); color: #fff; }
.smc-btn--primary:hover { background: #142546; color: #fff; }
.smc-btn--dark { background: var(--smc-ink); color: #fff; }
.smc-btn--dark:hover { background: #000; color: #fff; }
.smc-btn--outline { background: var(--smc-paper); color: var(--smc-blue); border-color: var(--smc-blue); }
.smc-btn--outline:hover { background: #EEF1F6; }
.smc-btn--ghost { background: transparent; color: var(--smc-ink); border-color: var(--smc-line); }
.smc-btn--ghost:hover { border-color: var(--smc-field); }
.smc-btn--whatsapp { background: var(--smc-wa); color: #fff; }
.smc-btn--whatsapp:hover { background: #17633D; color: #fff; }
.smc-btn--sm { min-height: 38px; padding: 0 12px; font-size: .92rem; }
.smc-btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.smc-btn[disabled] { opacity: .6; cursor: progress; }
.smc-linkbtn { padding: 0; border: 0; background: none; color: var(--smc-blue); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.smc-wa-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3a13 13 0 0 0-11.2 19.6L3 29l6.6-1.7A13 13 0 1 0 16 3Zm0 23.6c-2 0-3.9-.5-5.6-1.5l-.4-.2-3.9 1 1-3.8-.3-.4A10.6 10.6 0 1 1 16 26.6Zm5.8-7.9c-.3-.2-1.9-.9-2.2-1-.3-.1-.5-.2-.7.2l-1 1.2c-.2.2-.4.2-.7.1a8.7 8.7 0 0 1-4.3-3.8c-.3-.6.3-.5.9-1.7.1-.2 0-.4 0-.5l-1-2.4c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.1-1.2 2.8s1.2 3.2 1.4 3.5c.2.2 2.4 3.7 5.8 5.1 2.2.9 3 .9 4.1.8.7-.1 1.9-.8 2.2-1.5.3-.8.3-1.4.2-1.5-.1-.2-.3-.2-.6-.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3a13 13 0 0 0-11.2 19.6L3 29l6.6-1.7A13 13 0 1 0 16 3Zm0 23.6c-2 0-3.9-.5-5.6-1.5l-.4-.2-3.9 1 1-3.8-.3-.4A10.6 10.6 0 1 1 16 26.6Zm5.8-7.9c-.3-.2-1.9-.9-2.2-1-.3-.1-.5-.2-.7.2l-1 1.2c-.2.2-.4.2-.7.1a8.7 8.7 0 0 1-4.3-3.8c-.3-.6.3-.5.9-1.7.1-.2 0-.4 0-.5l-1-2.4c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.6.1-.9.4-.3.3-1.2 1.1-1.2 2.8s1.2 3.2 1.4 3.5c.2.2 2.4 3.7 5.8 5.1 2.2.9 3 .9 4.1.8.7-.1 1.9-.8 2.2-1.5.3-.8.3-1.4.2-1.5-.1-.2-.3-.2-.6-.4Z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Placeholder (never a broken image) ---------- */
.smc-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; padding: 1rem; text-align: center; color: var(--smc-muted); font-size: .92rem; background: var(--smc-panel); box-sizing: border-box; }
.smc-placeholder__icon { display: none; }
.smc-placeholder--stage, .smc-placeholder--card, .smc-placeholder--mini { aspect-ratio: 1 / 1; min-height: 0; }

/* ---------- Swatch artwork (shown until a real photo is uploaded) ----------
 * Several colours: a neat stack of folded fabric seen from the side.
 * One colour: the cloth itself, flat, with a fine weave. */
.smc-art { position: relative; display: block; width: 100%; height: 100%; min-height: 140px; overflow: hidden; background: #ECEEF2; }
.smc-art--stage { aspect-ratio: 1 / 1; height: auto; }
.smc-art--mini { aspect-ratio: 1 / 1; min-height: 0; border-radius: var(--smc-radius-sm); }
.smc-art--fan { display: flex; flex-direction: column-reverse; justify-content: center; gap: 3.5%; padding: 10% 14% 14%; }
.smc-art__swatch {
	display: block; flex: 0 0 auto; height: 14%; min-height: 12px; margin-right: 6%; border-radius: 4px 999px 999px 4px;
	background-color: var(--c);
	background-image: linear-gradient(to bottom, rgba(255,255,255,.18), transparent 45%, rgba(0,0,0,.14)), repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 4px);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.smc-art__swatch:nth-child(even) { margin-left: 5%; margin-right: 1%; }
.smc-art__fill {
	position: absolute; inset: 0; background-color: var(--c, #C9CEDC);
	background-image: linear-gradient(160deg, rgba(255,255,255,.12), transparent 50%, rgba(0,0,0,.12)), repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 4px);
}
.smc-art__fill--neutral { background-color: #E4E6EB; }
.smc-art__label {
	position: absolute; left: 12px; bottom: 10px; z-index: 2; max-width: calc(100% - 24px);
	padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--smc-muted);
	font-size: .78rem; font-weight: 500; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.smc-art--stage .smc-art__label { left: 16px; bottom: 16px; font-size: .9rem; padding: 5px 10px; white-space: normal; }
.smc-art--mini .smc-art__label { display: none; }

/* ---------- Grid + cards ---------- */
.smc-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (max-width: 479px) { .smc-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }
@media (max-width: 339px) { .smc-grid { grid-template-columns: 1fr; } }
.smc-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: transparent; }
.smc-card:focus-within { outline: 3px solid var(--smc-blue); outline-offset: 4px; border-radius: 4px; }
.smc-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--smc-panel); border-radius: 6px; }
.smc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.smc-card:hover .smc-card__media img { transform: scale(1.04); }
.smc-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 2px 0; }
.smc-card__meta { margin: 0 0 2px; font-size: .86rem; color: var(--smc-faint); }
.smc-card__title { margin: 0 0 4px; font-family: inherit; font-size: 1.12rem; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.smc-card__title a { color: var(--smc-ink); text-decoration: none; }
.smc-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.smc-card__link:focus-visible { outline: none; }
.smc-card:hover .smc-card__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.smc-card__benefit { margin: 0 0 10px; font-size: .97rem; color: var(--smc-muted); line-height: 1.4; }
.smc-card__desc { margin: 0 0 12px; font-size: .94rem; color: var(--smc-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.smc-card__colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; }
.smc-card__count { font-size: .86rem; color: var(--smc-faint); }
@media (max-width: 479px) {
	.smc-card__body { padding: 10px 0 0; }
	.smc-card__title { font-size: 1rem; }
	.smc-card__desc { display: none; }
}

/* Colour dots */
.smc-dots { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.smc-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--smc-swatch, #ccc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); vertical-align: middle; }
.smc-dot.is-light { box-shadow: inset 0 0 0 1px #A3A9B6; }
.smc-dot-more { font-size: .86rem; color: var(--smc-muted); line-height: 16px; padding-left: 4px; }

/* ---------- Product detail ---------- */
.smc-product { display: grid; gap: 32px 56px; align-items: start; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 899px) { .smc-product { grid-template-columns: 1fr; gap: 24px; } }
.smc-gallery { position: sticky; top: 112px; min-width: 0; }
@media (max-width: 899px) { .smc-gallery { position: static; } }
.smc-gallery__stage { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--smc-panel); border: 1px solid var(--smc-line); }
.smc-gallery__stage.is-entering > * { animation: smc-enter .2s ease-out; }
@keyframes smc-enter { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .smc-gallery__stage.is-entering > * { animation: none; } }
.smc-gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.smc-gallery__zoom:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--smc-blue); }
.smc-gallery__zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smc-gallery__badge { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 6px; background: rgba(255,255,255,.94); color: var(--smc-ink); font-size: .9rem; line-height: 1.35; }
.smc-gallery__stage .smc-art { border: 0; }
.smc-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.smc-gallery__thumbs[hidden] { display: none; }
.smc-thumb { padding: 0; border: 1px solid var(--smc-line); border-radius: 6px; background: var(--smc-panel); width: 64px; height: 64px; overflow: hidden; cursor: pointer; }
.smc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smc-thumb[aria-current="true"] { border: 2px solid var(--smc-ink); }
.smc-thumb:focus-visible { outline: none; box-shadow: var(--smc-focus); }

.smc-buy { min-width: 0; }
.smc-swatches { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.smc-swatches__legend { padding: 0; margin-bottom: 12px; font-size: 1rem; }
.smc-swatches__legend span { color: var(--smc-muted); }
.smc-swatches__legend strong { margin-left: .3em; font-weight: 650; }
.smc-swatches__list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.smc-swatch { position: relative; display: inline-flex; width: 46px; height: 46px; padding: 4px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.smc-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.smc-swatch__chip { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--smc-swatch, #ccc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); position: relative; }
.smc-swatch.is-light .smc-swatch__chip { box-shadow: inset 0 0 0 1px #A3A9B6; }
.smc-swatch:hover { box-shadow: 0 0 0 1px var(--smc-field); }
.smc-swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--smc-ink); }
.smc-swatch:has(input:checked) .smc-swatch__chip::after { content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg); filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.smc-swatch.is-light:has(input:checked) .smc-swatch__chip::after { border-color: var(--smc-ink); filter: none; }
.smc-swatch:has(input:focus-visible) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--smc-blue); }
.smc-swatch.is-unavailable { opacity: .5; cursor: not-allowed; }
.smc-swatch.is-unavailable .smc-swatch__chip::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: var(--smc-ink); transform: rotate(45deg); }
.smc-swatch.is-candidate .smc-swatch__chip { outline: 1px dashed var(--smc-field); outline-offset: 2px; }
.smc-swatches.is-collapsed .is-extra { display: none; }
.smc-swatches__more { min-height: 46px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--smc-blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.smc-swatches__more[hidden] { display: none; }
.smc-avail { margin: 10px 0 0; font-size: .95rem; color: var(--smc-muted); min-height: 1.4em; }
.smc-avail:empty { min-height: 0; margin: 0; }

.smc-hint { display: block; margin: 6px 0 0; font-size: .9rem; color: var(--smc-muted); line-height: 1.5; }
.smc-notice { padding: 14px 16px; background: var(--smc-panel); border-left: 3px solid var(--smc-blue); border-radius: 0 6px 6px 0; }
.smc-notice p { margin: 0; }

.smc-mode { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.smc-mode legend { grid-column: 1 / -1; padding: 0; margin-bottom: 10px; font-weight: 600; }
.smc-mode__opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--smc-line); border-radius: var(--smc-radius-sm); cursor: pointer; }
.smc-mode__opt:has(input:checked) { border: 2px solid var(--smc-blue); padding: 11px 13px; background: #F7F8FA; }
.smc-mode__opt:has(input:focus-visible) { box-shadow: var(--smc-focus); }
.smc-mode__opt input { margin-top: .25em; accent-color: var(--smc-blue); width: 18px; height: 18px; }
.smc-mode__opt strong { font-weight: 600; }
.smc-mode__opt small { display: block; color: var(--smc-muted); font-size: .88rem; margin-top: 2px; }
@media (max-width: 380px) { .smc-mode { grid-template-columns: 1fr; } }
.smc-custom { margin: 0 0 14px; padding: 16px; background: var(--smc-panel); border-radius: var(--smc-radius-sm); }
.smc-custom[hidden] { display: none; }

.smc-buy__actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 8px 0 18px; }
.smc-buy__actions [hidden] { display: none; }
.smc-buy__list { font-weight: 600; text-align: center; }
.smc-buy__wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--smc-wa); font-weight: 600; text-decoration: none; }
.smc-buy__wa:hover { text-decoration: underline; text-underline-offset: 3px; }
.smc-buy__facts { margin: 0; padding-top: 16px; border-top: 1px solid var(--smc-line); font-size: .93rem; color: var(--smc-muted); }

/* ---------- Form fields ---------- */
.smc-field { margin: 0 0 18px; min-width: 0; }
.smc-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .97rem; color: var(--smc-ink); }
.smc-opt { font-weight: 400; color: var(--smc-faint); }
.smc-field input[type="text"], .smc-field input[type="email"], .smc-field input[type="tel"],
.smc-field input[type="number"], .smc-field input[type="search"], .smc-field select, .smc-field textarea,
.smc-filters input, .smc-filters select {
	width: 100%; max-width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--smc-field); border-radius: var(--smc-radius-sm); background: #fff; color: var(--smc-ink);
	font: inherit; font-size: 1rem; line-height: 1.4;
}
.smc-field select, .smc-filters select { padding-right: 36px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23535A69' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; }
.smc-field input::placeholder, .smc-field textarea::placeholder { color: #8C92A0; }
.smc-field textarea { min-height: 110px; resize: vertical; }
.smc-field input:focus, .smc-field select:focus, .smc-field textarea:focus,
.smc-filters input:focus, .smc-filters select:focus { outline: none; border-color: var(--smc-blue); box-shadow: var(--smc-focus); }
.smc-field [aria-invalid="true"], .smc-qty input[aria-invalid="true"] { border-color: var(--smc-red-dark); box-shadow: 0 0 0 1px var(--smc-red-dark); }
.smc-field__error { display: block; color: var(--smc-red-dark); font-size: .9rem; margin-top: 6px; font-weight: 600; }
.smc-field input[type="file"] { font-size: .95rem; max-width: 100%; min-height: 44px; padding: 6px 0; }
.smc-field input[type="file"]::file-selector-button { min-height: 40px; padding: 0 14px; margin-right: 10px; border: 1.5px solid var(--smc-blue); border-radius: var(--smc-radius-sm); background: #fff; color: var(--smc-blue); font: inherit; font-weight: 600; cursor: pointer; }
.smc-req { color: var(--smc-ink); }
.smc-inline { display: inline-flex !important; gap: 6px; font-weight: 400 !important; margin-top: 6px; }
.smc-qty__row { display: flex; align-items: center; gap: 10px; }
.smc-field .smc-qty__row input { max-width: 170px; }
.smc-qty__unit { color: var(--smc-muted); }
.smc-msg { min-height: 1.4em; margin: 8px 0 10px; font-size: .97rem; }
.smc-msg:empty { min-height: 0; margin: 0; }
.smc-msg.is-error { color: var(--smc-red-dark); font-weight: 600; }
.smc-msg.is-success { color: var(--smc-ok); font-weight: 600; }
.smc-msg.is-info { color: var(--smc-blue); }
.smc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Forms as calm panels */
.smc-form { background: var(--smc-paper); padding: 28px; border: 1px solid var(--smc-line); border-radius: 12px; min-width: 0; }
.smc-form h2, .smc-form__title { font-family: inherit; font-size: 1.3rem; font-weight: 650; letter-spacing: 0; margin: 0 0 6px; }
.smc-form__intro { font-size: .97rem; color: var(--smc-muted); margin: 0 0 22px; }
.smc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.smc-form__grid .smc-field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .smc-form { padding: 20px 18px; } .smc-form__grid { grid-template-columns: 1fr; } }
.smc-form__errors { padding: 14px 16px; margin-bottom: 18px; border: 1.5px solid var(--smc-red-dark); border-radius: var(--smc-radius-sm); background: #FFF7F7; }
.smc-form__errors p { margin: 0; }
.smc-form__errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.smc-form__errors a { color: var(--smc-red-dark); }
.smc-form__submit { margin-top: 6px; }
.smc-form__submit .smc-btn { width: 100%; }
.smc-form__note { margin: 12px 0 0; font-size: .9rem; color: var(--smc-muted); text-align: center; }
.smc-form__note a { margin-left: 4px; }
.smc-form__note a + a { margin-left: 10px; }
.smc-consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.smc-consent input { margin-top: .25em; width: 18px; height: 18px; flex: 0 0 auto; }
.smc-fallback { margin-top: 14px; padding: 14px; background: var(--smc-panel); border-radius: var(--smc-radius-sm); }
.smc-fallback p:last-child { margin-bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* Zoom dialog */
.smc-zoom { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(16, 20, 32, .94); }
.smc-zoom::backdrop { background: rgba(16, 20, 32, .8); }
.smc-zoom__inner { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; touch-action: pinch-zoom pan-x pan-y; }
.smc-zoom__inner img { max-width: 100%; max-height: 100vh; cursor: zoom-in; }
.smc-zoom__inner img.is-zoomed { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.smc-zoom__close { position: fixed; top: 12px; right: 12px; }

/* Specs */
.smc-specs { margin: 32px 0; }
.smc-specs__title { font-size: 1.2rem; margin: 0 0 10px; }
.smc-specs__table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.smc-specs__table th, .smc-specs__table td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--smc-line); vertical-align: top; }
.smc-specs__table tr:last-child th, .smc-specs__table tr:last-child td { border-bottom: 0; }
.smc-specs__table th { width: 44%; font-weight: 400; color: var(--smc-faint); }
.smc-specs .smc-hint { margin-top: 10px; }

/* ---------- Filters ---------- */
.smc-filters { display: grid; gap: 12px 14px; align-items: end; margin: 0 0 28px; padding: 18px; background: var(--smc-paper); border: 1px solid var(--smc-line); border-radius: var(--smc-radius); grid-template-columns: minmax(200px, 2fr) repeat(auto-fit, minmax(150px, 1fr)); }
.smc-filters__field { margin: 0; min-width: 0; }
.smc-filters label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 5px; }
.smc-filters__actions { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.smc-filters__actions .smc-btn { min-height: 48px; }
.smc-filters__reset { font-size: .95rem; color: var(--smc-blue); }
@media (max-width: 600px) { .smc-filters { grid-template-columns: 1fr 1fr; } .smc-filters__search { grid-column: 1 / -1; } }

/* ---------- Inquiry list ---------- */
.smc-inquiry__main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 959px) { .smc-inquiry__main { grid-template-columns: 1fr; gap: 32px; } }
.smc-inquiry__main[hidden], .smc-inquiry [hidden] { display: none !important; }
.smc-inquiry h2 { font-size: 1.3rem; margin: 0 0 14px; }
.smc-inquiry__list h2, .smc-specs__title, .smc-terms h2, .smc-catalog__group h2 { font-family: inherit; font-weight: 650; letter-spacing: 0; }
.smc-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--smc-line); }
.smc-line:first-child { border-top: 1px solid var(--smc-line); }
.smc-line.is-error { background: linear-gradient(90deg, rgba(165, 31, 38, .05), transparent 60%); }
.smc-line__thumb img, .smc-line__swatch { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; display: block; }
.smc-line__swatch { background: var(--smc-swatch, var(--smc-panel)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.smc-line__swatch--custom { background: repeating-linear-gradient(45deg, #E4E4E7 0 6px, #F4F4F5 6px 12px); }
.smc-line__title { font-size: 1.05rem; margin: 0 0 2px; }
.smc-line__title a { color: var(--smc-ink); }
.smc-line__code { font-size: .85rem; color: var(--smc-faint); font-weight: 400; }
.smc-line__color { margin: 0 0 10px; color: var(--smc-muted); }
.smc-line__errs { margin: 0 0 10px; padding: 8px 10px 8px 26px; color: var(--smc-red-dark); background: #FFF5F5; border-radius: 6px; font-weight: 600; font-size: .93rem; }
.smc-line__err { color: var(--smc-red-dark); font-weight: 600; margin: 0; }
.smc-line__controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.smc-line__controls .smc-field { margin-bottom: 12px; }
.smc-line__controls .smc-field--wide { grid-column: 1 / -1; }
.smc-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #EEF1F6; color: var(--smc-blue); font-size: .82rem; font-weight: 600; }
@media (max-width: 599px) {
	.smc-line { grid-template-columns: 56px minmax(0, 1fr); }
	.smc-line__thumb img, .smc-line__swatch { width: 56px; height: 56px; }
	.smc-line > .smc-btn { grid-column: 2; justify-self: start; }
}
.smc-inquiry__total { font-size: 1.05rem; padding: 14px 0; }
.smc-inquiry__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.smc-empty-list { padding: 32px; text-align: center; background: var(--smc-panel); border-radius: var(--smc-radius); }
.smc-loading { color: var(--smc-muted); }

/* Confirmation */
.smc-confirm { max-width: 680px; padding: 32px; border: 1px solid var(--smc-line); border-top: 4px solid var(--smc-ok); border-radius: 12px; background: #fff; }
.smc-confirm__badge { margin: 0 0 6px; color: var(--smc-ok); font-weight: 600; }
.smc-confirm__title { margin: 0 0 12px; font-size: 1.5rem; }
.smc-ref { font-variant-numeric: tabular-nums; color: var(--smc-blue); white-space: nowrap; }
.smc-confirm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 22px 0 10px; }
.smc-confirm__back { margin: 22px 0 0; font-weight: 600; }
.smc-inquiry__result:focus { outline: none; }

/* ---------- Custom colour builder ---------- */
.smc-cc { max-width: 760px; padding: 28px; border: 1px solid var(--smc-line); border-radius: 12px; }
.smc-cc__facts { padding: 14px 16px; border-left: 3px solid var(--smc-blue); background: var(--smc-panel); margin-bottom: 22px; border-radius: 0 6px 6px 0; }
.smc-cc__facts p { margin: 0 0 4px; }
.smc-cc__facts p:last-child { margin: 0; color: var(--smc-muted); }
.smc-cc [hidden] { display: none; }
.smc-cc > p:last-child { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
@media (max-width: 560px) { .smc-cc { padding: 20px 18px; } }

/* ---------- Free sample kit form ---------- */
.smc-kitform { display: grid; gap: 20px; }
.smc-panel { padding: 26px 28px; background: #fff; border: 1px solid var(--smc-line); border-radius: 12px; }
.smc-panel__title { font-family: inherit; font-size: 1.25rem; font-weight: 650; letter-spacing: 0; margin: 0 0 18px; }
.smc-panel__hint { margin: -10px 0 18px; color: var(--smc-muted); }
.smc-panel .smc-field:last-child { margin-bottom: 0; }
.smc-kitlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.smc-kitlist__group { grid-column: 1 / -1; margin: 14px 0 2px; font-size: .9rem; font-weight: 600; color: var(--smc-faint); }
.smc-kitrow:has(.smc-kitrow__head input:checked), .smc-kitrow.is-selected { grid-column: 1 / -1; }
@media (max-width: 640px) { .smc-kitlist { grid-template-columns: 1fr; } }
.smc-kitlist__group:first-child { margin-top: 0; }
.smc-kitrow { border: 1px solid var(--smc-line); border-radius: var(--smc-radius-sm); background: #fff; transition: border-color .15s ease, background .15s ease; }
.smc-kitrow.is-selected, .smc-kitrow:has(.smc-kitrow__head input:checked) { border-color: var(--smc-blue); background: #F7F8FA; }
.smc-kitrow__head { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 13px 14px; cursor: pointer; }
.smc-kitrow__head input { width: 20px; height: 20px; margin: 0; accent-color: var(--smc-blue); }
.smc-kitrow__name { font-weight: 600; line-height: 1.35; }
.smc-kitrow__note { grid-column: 2; color: var(--smc-faint); font-size: .9rem; }
.smc-kitrow__opts { display: none; padding: 0 14px 16px 46px; }
.smc-kitrow:has(.smc-kitrow__head input:checked) .smc-kitrow__opts, .smc-kitrow.is-selected .smc-kitrow__opts { display: block; }
.smc-kitrow__opts .smc-hint { margin: 0; }
.smc-chipset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.smc-chipset:last-child { margin-bottom: 0; }
.smc-chipset legend { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--smc-muted); }
.smc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.smc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--smc-field); border-radius: 999px; background: #fff; font-size: .95rem; cursor: pointer; user-select: none; }
.smc-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--smc-blue); }
.smc-chip:has(input:checked) { border-color: var(--smc-blue); background: #EEF1F6; font-weight: 600; }
.smc-chip:has(input:focus-visible) { box-shadow: var(--smc-focus); }
.smc-chip__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.smc-chip__dot.is-light { box-shadow: inset 0 0 0 1px #A3A9B6; }
.smc-kit__other { margin: 18px 0 0; }
.smc-kitform .smc-form__submit { max-width: 520px; width: 100%; margin: 4px auto 0; }
@media (max-width: 560px) {
	.smc-panel { padding: 20px 16px; }
	.smc-kitrow__opts { padding-left: 14px; }
}

/* Contact details (shortcode) */
.smc-contact__card { max-width: 640px; }
.smc-contact__names { font-size: 1.5rem; }
.smc-name-1 { color: var(--smc-red); font-weight: 700; }
.smc-name-2 { color: var(--smc-blue); font-weight: 700; }
.smc-amp { color: var(--smc-muted); font-weight: 400; }
.smc-contact__list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.smc-contact__list dt { color: var(--smc-faint); }
.smc-contact__list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .smc-contact__list { grid-template-columns: 1fr; gap: 2px; } .smc-contact__list dd { margin-bottom: 10px; } }

/* Printable catalog */
.smc-catalog__toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.smc-catalog__head { padding-bottom: 18px; margin-bottom: 26px; border-bottom: 2px solid var(--smc-ink); }
.smc-catalog__names { font-size: 1.7rem; margin: 0 0 6px; }
.smc-catalog__contact { color: var(--smc-muted); font-size: .95rem; }
.smc-catalog__policy { margin: 10px 0 0; padding-left: 1.1em; font-size: .95rem; }
.smc-catalog__group h2 { font-size: 1.3rem; margin: 28px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--smc-line); }
.smc-catalog__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px 28px; }
.smc-catalog__item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; break-inside: avoid; page-break-inside: avoid; }
.smc-catalog__img img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; display: block; }
.smc-catalog__body h3 { font-size: 1.05rem; margin: 0 0 4px; }
.smc-catalog__body h3 a { color: var(--smc-ink); text-decoration: none; }
.smc-catalog__body p { margin: 0 0 6px; font-size: .93rem; }
.smc-catalog__code { font-weight: 400; color: var(--smc-faint); font-size: .88rem; }
.smc-catalog__specs { color: var(--smc-muted); }
.smc-catalog__colors { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 6px; padding: 0; list-style: none; font-size: .86rem; }
.smc-catalog__colors li { display: inline-flex; align-items: center; gap: 4px; }
.smc-catalog__colors .smc-dot { width: 12px; height: 12px; }
.smc-catalog__moq { font-weight: 600; }

/* Inquiry count */
.smc-count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em; border-radius: 1em; background: var(--smc-ink); color: #fff; font-size: .8em; font-weight: 700; font-variant-numeric: tabular-nums; }
.smc-count.has-items { background: var(--smc-blue); }

/* ---------- Quote form: fabric, color and GSM lines ---------- */
.smc-cflines { border: 0; margin: 4px 0 8px; padding: 0; min-width: 0; }
.smc-cflines legend { padding: 0; margin-bottom: 10px; font-weight: 650; }
.smc-cflines__rows { display: grid; gap: 10px; }
.smc-cfline { position: relative; display: grid; grid-template-columns: 1.4fr 1.2fr 1fr .7fr; gap: 0 12px; padding: 14px 44px 4px 14px; border: 1px solid var(--smc-line); border-radius: var(--smc-radius-sm); background: var(--smc-panel); }
.smc-cfline .smc-field { margin-bottom: 10px; min-width: 0; }
.smc-cfline select, .smc-cfline input { width: 100%; }
.smc-cfline__other { grid-column: 1 / -1; }
.smc-cfline__other[hidden] { display: none; }
.smc-cfline__msg { grid-column: 1 / -1; margin: 0 0 8px; }
.smc-cfline__msg:empty { display: none; }
.smc-cfline__remove { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--smc-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.smc-cfline__remove:hover { background: #fff; color: var(--smc-ink); }
.smc-cfline__remove[hidden] { display: none; }
.smc-cflines__more { margin: 10px 0 0; }
.smc-cflines__more .smc-btn[hidden] { display: none; }
@media (max-width: 760px) { .smc-cfline { grid-template-columns: 1fr 1fr; } .smc-cfline__fabric { grid-column: 1 / -1; } }
@media (max-width: 420px) { .smc-cfline { grid-template-columns: 1fr; padding-right: 14px; padding-top: 40px; } }

.smc-kitrow__gsm { max-width: 260px; margin: 0 0 12px; }

/* Custom color form GSM */
.smc-cc__gsm[hidden] { display: none; }
.smc-cfline { align-items: end; }

.smc-cfline__pick { position: relative; display: block; }
.smc-cfline__pick select { padding-left: 38px; }
.smc-cfline__dot { position: absolute; left: 10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: repeating-linear-gradient(45deg, #E4E4E7 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); pointer-events: none; }
