/* ON-LASER Maquinària usada — front end. Inherits the theme's fonts and colours. */
.olm-listing, .olm-single { --olm-accent: #c8102e; --olm-border: rgba(0,0,0,.12); --olm-muted: rgba(0,0,0,.6); --olm-bg: #fff; }

.olm-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.olm-filter a { padding: .35rem .9rem; border: 1px solid var(--olm-border); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.olm-filter a.is-active, .olm-filter a:hover { border-color: var(--olm-accent); color: var(--olm-accent); }

.olm-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.olm-grid > li { margin: 0; padding: 0; }
.olm-card { border: 1px solid var(--olm-border); border-radius: 6px; overflow: hidden; background: var(--olm-bg); transition: box-shadow .2s; }
.olm-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.olm-card__link, .olm-card__link:hover { display: block; color: inherit; text-decoration: none; }
.olm-card__media { position: relative; aspect-ratio: 4 / 3; background: #f2f2f2; overflow: hidden; }
.olm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.olm-card--venut .olm-card__media img { filter: grayscale(1); opacity: .7; }
.olm-card__body { padding: 1rem 1.1rem 1.2rem; }
.olm-card__ref { margin: 0 0 .25rem; font-size: .75rem; letter-spacing: .05em; color: var(--olm-muted); }
.olm-card__title { margin: 0 0 .4rem; font-size: 1.1rem; line-height: 1.3; }
.olm-card__specs { margin: 0 0 .6rem; font-size: .9rem; color: var(--olm-muted); }
.olm-card__price { margin: 0 0 .6rem; font-weight: 700; }
.olm-card__more { font-size: .9rem; color: var(--olm-accent); }

.olm-badge { display: inline-block; padding: .2rem .6rem; border-radius: 3px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #e08a00; }
.olm-badge--venut { background: #555; }
.olm-card__media .olm-badge { position: absolute; top: .75rem; left: .75rem; }

.olm-back { margin: 0 0 1rem; font-size: .9rem; }
.olm-single__top { display: grid; gap: 2rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-bottom: 2rem; }
@media (max-width: 800px) { .olm-single__top { grid-template-columns: 1fr; } }
.olm-gallery__main { display: block; background: #f2f2f2; border-radius: 6px; overflow: hidden; }
.olm-gallery__main img { width: 100%; height: auto; display: block; }
.olm-gallery__thumbs { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.olm-gallery__thumbs li { margin: 0; }
.olm-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; line-height: 0; }
.olm-gallery__thumbs button.is-active, .olm-gallery__thumbs button:hover { border-color: var(--olm-accent); }
.olm-gallery__thumbs img { width: 72px; height: 72px; object-fit: cover; display: block; }
.olm-single__price { font-size: 1.5rem; font-weight: 700; margin: .5rem 0 1rem; }
.olm-specs { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .95rem; }
.olm-specs th, .olm-specs td { padding: .45rem .5rem; border-bottom: 1px solid var(--olm-border); text-align: left; vertical-align: top; }
.olm-specs th { width: 45%; font-weight: 600; color: var(--olm-muted); }

.olm-button, .olm-form button.olm-button { display: inline-block; padding: .7rem 1.4rem; border: 0; border-radius: 4px; background: var(--olm-accent); color: #fff !important; font-weight: 700; text-decoration: none; cursor: pointer; }
.olm-button:hover { filter: brightness(1.1); }

.olm-form-wrap { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--olm-border); border-radius: 6px; scroll-margin-top: 100px; }
.olm-form-wrap h2 { margin-top: 0; }
.olm-form-ref { color: var(--olm-muted); }
.olm-form-grid { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.olm-form input[type=text], .olm-form input[type=email], .olm-form input[type=tel], .olm-form textarea { width: 100%; box-sizing: border-box; }
.olm-consent label { font-weight: normal; }
.olm-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.olm-notice { padding: .8rem 1rem; border-radius: 4px; background: #f4f4f4; }
.olm-notice--ok { background: #e7f6ec; color: #145c2c; }
.olm-notice--error { background: #fdecee; color: #8a1020; }
.olm-empty { padding: 2rem; text-align: center; background: #f6f6f6; border-radius: 6px; }
