/* Components: cards, catalogue, product page, forms and dialogs, inner pages, footer (carried over from theme v0.1.0) */
/* 8. Cards ----------------------------------------------------------------- */
.c-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.c-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.c-card--feature { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.c-card--feature .c-card__title a, .c-card--feature .c-card__link { color: #fff; }
.c-card--feature .c-card__desc, .c-card--feature .c-card__kids a { color: #c4d6e6; }
.c-card--feature .c-card__icon { background: rgb(255 255 255 / 12%); color: var(--accent); }
.c-card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-teal); color: var(--secondary); display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.c-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.c-card__title { font-size: 1.25rem; margin: 0; }
.c-card__title a { color: var(--primary-dark); text-decoration: none; }
.c-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.c-card__desc { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.c-card__kids { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.88rem; position: relative; z-index: 1; }
.c-card__kids a { color: var(--primary); text-decoration: none; font-weight: 600; }
.c-card__kids a:hover { text-decoration: underline; }
.c-card__link { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--primary); text-decoration: none; }

.p-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.25s var(--ease), border-color 0.2s, transform 0.25s var(--ease); }
.p-card:hover { box-shadow: var(--shadow-md); border-color: #b9c8d6; transform: translateY(-2px); }
.p-card__media { position: relative; display: block; text-decoration: none; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.04); }
.p-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px; flex: 1; }
.p-card__cat { margin: 0; font-size: 0.8rem; font-weight: 700; }
.p-card__cat a { color: var(--secondary); text-decoration: none; }
.p-card__title { font-size: 1.1rem; margin: 0; }
.p-card__title a { color: var(--primary-dark); text-decoration: none; }
.p-card__title a:hover { color: var(--primary); }
.p-card__desc { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 8px; }
.p-card__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-card__actions .btn { padding-inline: 10px; }
.p-card__wa { grid-column: 1 / -1; }

/* 9. Catalogue ------------------------------------------------------------- */
.catalogue { display: grid; gap: 24px; padding-block: 32px 72px; grid-template-columns: minmax(0, 1fr); }
.filter-toggle { display: none; justify-self: start; }
.js .filter-toggle { display: inline-flex; }
.js .filters { display: none; }
.js .filters.is-open { display: block; }
.filters { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; align-self: start; }
.filters__group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.filters__title { font-size: 0.95rem; font-weight: 800; margin: 0 0 10px; padding: 0; color: var(--primary-dark); }
.filters__title label { font: inherit; }
.filters__links, .filters__links ul { list-style: none; padding: 0; margin: 0; }
.filters__links ul { padding-left: 14px; border-left: 2px solid var(--border); margin: 2px 0 6px 6px; }
.filters__links a { display: block; padding: 6px 0; text-decoration: none; color: var(--text); font-size: 0.95rem; }
.filters__links a:hover { color: var(--primary); }
.filters__links a[aria-current] { font-weight: 800; color: var(--primary); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.filters__actions { display: flex; gap: 8px; }
.search-form { position: relative; display: flex; }
.search-form__input { flex: 1; min-width: 0; padding: 12px 52px 12px 16px; min-height: 48px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: #fff; color: var(--text); }
.search-form__btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search-form__btn:hover { background: var(--primary-dark); }
.search-form--compact .search-form__input { min-height: 44px; padding-block: 9px; }
.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.results__count { margin: 0; font-weight: 700; color: var(--text-muted); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.sort select { padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: #fff; min-height: 42px; }
@media (min-width: 900px) {
	.catalogue { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; }
	.filter-toggle, .js .filter-toggle { display: none; }
	.js .filters { display: block; }
	.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
}

.pagination { margin-top: 36px; }
.pagination ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; min-width: 42px; height: 42px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--primary-dark); }
.pagination a:hover { border-color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

.empty { text-align: center; padding: 56px 16px; background: var(--surface); border-radius: var(--radius-lg); }
.empty p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.empty .search-form { max-width: 520px; margin: 0 auto 8px; }

/* 10. Product page --------------------------------------------------------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: 28px 32px; }
.page-hero--compact { padding-block: 14px; }
.page-hero__title { margin: 12px 0 0.3em; }
.page-hero--compact .page-hero__title { display: none; }
.page-hero__intro { color: var(--text-muted); max-width: 64ch; margin: 0; font-size: 1.05rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: #9aa8b5; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.product { padding-block: 32px 24px; }
.product__top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.gallery__main { aspect-ratio: 4 / 3; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.gallery__thumbs a { display: block; width: 76px; height: 76px; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery__thumbs a[aria-current="true"] { border-color: var(--primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__cat { margin: 0 0 6px; font-weight: 700; font-size: 0.9rem; }
.product__cat a { color: var(--secondary); text-decoration: none; }
.product__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.3em; }
.product__code { color: var(--text-muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.product__short { font-size: 1.05rem; color: var(--text-muted); margin-block: 12px 20px; }
.product__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.product__assure { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; color: var(--text-muted); font-size: 0.93rem; }
.product__assure li { display: flex; gap: 8px; align-items: center; }
.product__assure .icon { color: var(--success); }
.product__tabs { display: flex; gap: 6px; overflow-x: auto; margin-block: 36px 8px; border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); background: #fff; z-index: 5; scrollbar-width: thin; }
.product__tabs a { padding: 14px 16px; text-decoration: none; font-weight: 700; color: var(--text-muted); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.product__tabs a:hover { color: var(--primary); border-color: var(--accent); }
.psec { padding-block: 28px; border-bottom: 1px solid var(--border); }
.psec h2 { font-size: 1.4rem; }
.psec--inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 0; }
.psec--inline p { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--secondary); margin-top: 2px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 320px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table thead th { background: var(--surface); font-size: 0.85rem; text-transform: none; color: var(--primary-dark); }
.spec-table tbody th { width: 38%; font-weight: 700; color: var(--primary-dark); background: #fafcfd; }
.spec-table tr:last-child > * { border-bottom: 0; }
.spec-table--placeholder td { color: var(--text-muted); font-style: italic; }
.enquiry-box { display: grid; gap: 24px; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); border-bottom: 0; margin-top: 32px; }
.enquiry-box__intro p { color: var(--text-muted); }
@media (min-width: 900px) {
	.product__top { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
	.enquiry-box { grid-template-columns: 0.7fr 1.3fr; gap: 48px; }
}

/* 11. Forms & dialogs ------------------------------------------------------ */
.qform__grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--primary-dark); }
.req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; min-height: 48px; border: 1px solid #b7c4d0; border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgb(242 179 61 / 55%); border-color: var(--primary); }
.field input[readonly] { background: var(--surface); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.85rem; font-weight: 600; }
.qform__error { color: var(--danger); font-weight: 700; margin: 14px 0 0; }
.qform__foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.qform__note { font-size: 0.82rem; color: var(--text-muted); margin: 14px 0 0; }
.qform-success { text-align: center; padding: 24px 8px; }
.qform-success__icon { color: #fff; background: var(--success); border-radius: 50%; padding: 12px; width: 56px; height: 56px; margin: 0 auto 12px; }
.qform-success .qform__foot { justify-content: center; }
@media (min-width: 640px) { .qform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }

.dialog { border: 0; padding: 0; background: transparent; width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; color: var(--text); overflow: visible; }
.dialog::backdrop { background: rgb(8 31 52 / 62%); }
.dialog[open] { animation: fade-in 0.22s var(--ease); }
.dialog__panel { background: #fff; border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 32px); max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: var(--shadow-md); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog__head h2 { margin: 0; font-size: 1.4rem; }
.dialog__lead { color: var(--text-muted); margin: 6px 0 18px; }
.dialog--search { margin-top: 8vh; }
.dialog--search .chips { margin-top: 4px; }
.dialog--search .search-form { margin-top: 16px; }

/* 12. Inner pages ---------------------------------------------------------- */
.about, .contact, .quote-page { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.side-card, .panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.side-card { background: var(--surface); border-color: transparent; align-self: start; }
.panel h2 { font-size: 1.35rem; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--secondary); margin-top: 3px; }
.contact-list--big { gap: 22px; margin-top: 24px; }
.contact-list--big li > div { display: flex; flex-direction: column; gap: 2px; }
.contact-list a { color: var(--primary); font-weight: 600; }
.contact-list li > *, .contact-list li > div > *, .footer__contact li > * { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 340px; gap: 56px; } .contact { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } .quote-page { grid-template-columns: 1.4fr 0.6fr; gap: 40px; } }

.resources { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.resource { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.resource__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--surface); color: var(--primary); display: grid; place-items: center; }
.resource h2 { font-size: 1.1rem; margin-bottom: 2px; }
.resource p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.resource .resource__type { font-size: 0.78rem; font-weight: 800; color: var(--secondary); margin-top: 4px; }
.resource .btn { grid-column: 1 / -1; justify-self: start; }
.resources__more { margin-top: 28px; }
@media (min-width: 700px) { .resource { grid-template-columns: auto minmax(0, 1fr) auto; } .resource .btn { grid-column: auto; } }

.search-page__form { max-width: 620px; margin-bottom: 20px; }
.search-h { font-size: 1.2rem; margin: 32px 0 14px; }
.search-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.search-list a { font-weight: 700; font-size: 1.05rem; }
.search-list p { margin: 2px 0 0; }

.layout-sidebar { display: grid; gap: 40px; }
@media (min-width: 900px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 300px; } }
.post-list { display: grid; gap: 28px; }
.post-row { display: grid; gap: 16px; }
.post-row h2 { font-size: 1.35rem; }
.post-row h2 a { text-decoration: none; }
.post-row__img img { border-radius: var(--radius); width: 100%; }
@media (min-width: 640px) { .post-row { grid-template-columns: 220px 1fr; } }
.widget { margin-bottom: 28px; padding: 20px; background: var(--surface); border-radius: var(--radius); }
.widget-title { font-size: 1.05rem; }

/* 13. Footer & floating ---------------------------------------------------- */
.site-footer { background: var(--primary-dark); color: #c4d6e6; font-size: 0.95rem; }
.site-footer a { color: #e6f0f8; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer__grid { display: grid; gap: 36px; padding-block: 56px 40px; grid-template-columns: minmax(0, 1fr); }
.footer__title { font-size: 0.95rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { color: var(--accent); margin-top: 2px; }
.footer__about p { max-width: 38ch; }
.social { display: flex !important; gap: 8px !important; margin-top: 16px !important; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / 14%); padding-block: 18px; font-size: 0.85rem; }
.footer__bottom p { margin: 0; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; } }

.floating { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-fab { width: 54px; height: 54px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform 0.2s var(--ease); }
.wa-fab:hover { transform: scale(1.06); color: #fff; }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--primary-dark); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.to-top[hidden] { display: none; }

