/* Shared layout for rebuilt product pages (water softener, DM plant, filters, ...). Classes are prefixed .ws-. */
.ws { max-width: 1100px; margin: 0 auto; padding: 0 18px; color: #333; }
.ws h1 { color: #2a4a98; font-weight: 800; font-size: 2.1rem; line-height: 1.2; margin: 18px 0 12px; }
.ws h2 { color: #2a4a98; font-weight: 700; font-size: 1.6rem; margin: 44px 0 14px; }
.ws h3 { color: #2a4a98; font-weight: 700; font-size: 1.15rem; margin: 18px 0 8px; }
.ws p, .ws li { font-size: 1.05rem; line-height: 1.7; }
.ws-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; }
.ws-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.ws-cta a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.ws-cta a:hover, .ws-cta a:focus { text-decoration: none; filter: brightness(1.07); }
.ws-cta .q { background: #0b86dd; color: #fff; }
.ws-cta .w { background: #1a8f4a; color: #fff; }
.ws-cta .c { background: #fff; color: #0b86dd; border: 2px solid #0b86dd; }
.ws-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0 6px; }
.ws-fact { background: #f3f8fd; border: 1px solid #dbe8f5; border-radius: 12px; padding: 16px; text-align: center; }
.ws-fact strong { display: block; font-size: 1.35rem; color: #0b86dd; }
.ws-fact span { font-size: .95rem; color: #555; }
.ws-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ws-table { width: 100%; border-collapse: collapse; min-width: 680px; background: #fff; }
.ws-table th, .ws-table td { border: 1px solid #dbe3ee; padding: 10px 12px; text-align: center; font-size: 1rem; }
.ws-table th { background: #2a4a98; color: #fff; font-weight: 700; }
.ws-table tbody tr:nth-child(even) { background: #f6f9fc; }
.ws-table td:first-child { font-weight: 700; color: #2a4a98; white-space: nowrap; }
.ws-table.compact { min-width: 0; max-width: 560px; }
.ws-table.compact td { text-align: left; }
.ws-note { font-size: .95rem; color: #555; margin-top: 10px; }
.ws-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ws-figure { margin: 0; }
.ws-figure img { width: 100%; height: auto; border-radius: 10px; }
.ws-figure figcaption { font-size: .85rem; color: #666; margin-top: 6px; }
.ws-figure figcaption a { color: #666; }
.ws-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ws-type { background: #f8fbfe; border: 1px solid #dbe8f5; border-radius: 12px; padding: 16px; }
.ws-type img { width: 100%; height: 240px; object-fit: contain; background: #fff; border-radius: 8px; }
.ws-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.ws-apps li { background: #f3f8fd; border-left: 4px solid #0b86dd; border-radius: 8px; padding: 12px 14px; }
.ws-box { background: #f3f8fd; border: 1px solid #dbe8f5; border-radius: 12px; padding: 20px 24px; margin-top: 10px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ws-chips li { background: #fff; border: 1px solid #b9d3ee; border-radius: 999px; padding: 4px 14px; font-weight: 700; color: #2a4a98; font-size: .95rem; }
@media (max-width: 900px) { .ws-hero, .ws-cols, .ws-types { grid-template-columns: 1fr; } .ws-facts { grid-template-columns: repeat(2, 1fr); } .ws h1 { font-size: 1.7rem; } }
html[data-theme="dark"] .ws { color: #d6dde6; }
html[data-theme="dark"] .ws h1, html[data-theme="dark"] .ws h2, html[data-theme="dark"] .ws h3 { color: #8ec5ff; }
html[data-theme="dark"] .ws-fact, html[data-theme="dark"] .ws-apps li, html[data-theme="dark"] .ws-box, html[data-theme="dark"] .ws-type { background: #1b2433; border-color: #2c3a50; }
html[data-theme="dark"] .ws-fact span, html[data-theme="dark"] .ws-note, html[data-theme="dark"] .ws-figure figcaption, html[data-theme="dark"] .ws-figure figcaption a { color: #b8c2cf; }
html[data-theme="dark"] .ws-table { background: #141b26; }
html[data-theme="dark"] .ws-table td { border-color: #2c3a50; }
html[data-theme="dark"] .ws-table tbody tr:nth-child(even) { background: #1b2433; }
html[data-theme="dark"] .ws-table td:first-child { color: #8ec5ff; }
html[data-theme="dark"] .ws-chips li { background: #141b26; border-color: #2c3a50; color: #8ec5ff; }

/* Gallery of installation photos */
.ws-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ws-gallery figure { margin: 0; background: #f8fbfe; border: 1px solid #dbe8f5; border-radius: 12px; overflow: hidden; }
.ws-gallery img { width: 100%; height: 230px; object-fit: cover; display: block; }
.ws-gallery figcaption { padding: 10px 12px; font-size: .95rem; color: #444; }
.ws-pack { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0; list-style: none; }
.ws-pack li { background: #2a4a98; color: #fff; border-radius: 8px; padding: 6px 14px; font-weight: 700; }
.ws-product { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; background: #f8fbfe; border: 1px solid #dbe8f5; border-radius: 12px; padding: 20px; margin: 16px 0; }
.ws-product img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }
@media (max-width: 700px) { .ws-product { grid-template-columns: 1fr; } .ws-product img { max-height: 280px; } }
html[data-theme="dark"] .ws-gallery figure, html[data-theme="dark"] .ws-product { background: #1b2433; border-color: #2c3a50; }
html[data-theme="dark"] .ws-gallery figcaption { color: #d6dde6; }
/* Product cut-out photos: show the whole item instead of cropping */
.ws-gallery.contain img { object-fit: contain; height: 340px; background: #fff; padding: 8px; }
