/* ============================================================
   PWS Shop — clean, light, PWS-blue. Statically rendered site:
   no component CSS isolation needed, one sheet does the lot.
   ============================================================ */

:root {
    --blue: #0d72b9;
    --blue-dark: #0b619c;
    --ink: #1f2a37;
    --ink-soft: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --radius: 10px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.55;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.9rem; margin: 18px 0 10px; }
h2 { font-size: 1.35rem; margin: 8px 0; }
.lede { color: var(--ink-soft); max-width: 760px; margin: 0 0 22px; }

/* ---- header ---- */
.site-header { background: var(--blue); color: #fff; }
.header-row { display: flex; align-items: center; gap: 18px; padding: 14px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand-shop { font-weight: 400; opacity: .85; }
.main-nav { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.main-nav a { color: #eaf3fb; font-size: .92rem; }
.basket-link { color: #fff; font-weight: 600; white-space: nowrap; }
.basket-count {
    background: #fff; color: var(--blue); border-radius: 999px;
    padding: 1px 8px; font-size: .8rem; margin-left: 4px;
}

/* ---- product grids ---- */
.cat-section { margin: 26px 0; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cat-all { font-size: .88rem; white-space: nowrap; }
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin: 12px 0;
}
.prod-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden; background: #fff;
    transition: box-shadow .15s ease, transform .15s ease;
}
.prod-card:hover { box-shadow: 0 6px 18px rgba(20, 50, 80, .10); transform: translateY(-2px); }
.prod-img { display: block; background: #fff; height: 200px; padding: 10px 0; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-img-empty {
    height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; background: var(--bg); color: #b6c6d4;
}
.prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-name { font-weight: 600; color: var(--ink); }
/* Clamp tile text so every card sits at a uniform, compact height — the full
   title and description live on the Details page. */
.prod-name, .prod-short {
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-name { -webkit-line-clamp: 2; }
.prod-short { color: var(--ink-soft); font-size: .86rem; flex: 1; -webkit-line-clamp: 3; }
/* No inner margins inside the clamp — a paragraph gap leaves a cropped sliver
   of the next line visible below the ellipsis. */
.prod-short p { margin: 0; }
.prod-actions { display: flex; gap: 8px; }

/* ---- buttons ---- */
.btn {
    display: inline-block; padding: 7px 14px; border-radius: 8px;
    font-size: .9rem; font-weight: 600; border: 1px solid transparent;
    cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: #f0f7fc; }
.btn-lg { padding: 11px 22px; font-size: 1rem; }

/* ---- product detail ---- */
.crumbs { color: var(--ink-soft); font-size: .86rem; margin: 16px 0 4px; }
.prod-detail { display: flex; gap: 28px; flex-wrap: wrap; margin: 12px 0 8px; }
.prod-gallery { flex: 1 1 340px; max-width: 460px; }
.gallery-main {
    width: 100%; height: 340px; object-fit: contain;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 72px; height: 72px; object-fit: contain;
    border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.prod-info { flex: 1 1 380px; }
.prod-short-lg { color: var(--ink-soft); margin-bottom: 16px; }
.prod-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.cta-note { color: var(--ink-soft); font-size: .84rem; max-width: 520px; }
.prod-section { margin: 26px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.rich { max-width: 820px; }
.rich img { max-width: 100%; height: auto; }
.rich table { border-collapse: collapse; }
.rich td, .rich th { border: 1px solid var(--line); padding: 6px 10px; }

/* ---- enquiry ---- */
.basket-list {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
}
.basket-list ul { margin: 8px 0; padding-left: 20px; }
.basket-list li { margin: 4px 0; }
.basket-remove { color: #b91c1c; margin-left: 8px; font-size: .85rem; }
.basket-hint { color: var(--ink-soft); font-size: .9rem; }
.enquiry-form { max-width: 720px; margin-bottom: 40px; }
.form-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px; margin-bottom: 12px;
}
.enquiry-form label { display: flex; flex-direction: column; font-size: .88rem; font-weight: 600; gap: 4px; }
.enquiry-form input, .enquiry-form textarea {
    padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: .95rem; font-family: inherit;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-msg { margin-bottom: 14px; }
.form-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
    border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: .9rem;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---- thanks ---- */
.thanks { text-align: center; padding: 50px 0 70px; }
.thanks-tick {
    width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
    background: #16a34a; color: #fff; font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
}

/* ---- footer ---- */
.site-footer {
    margin-top: 46px; border-top: 1px solid var(--line);
    background: var(--bg); color: var(--ink-soft); font-size: .88rem;
}
.site-footer .wrap { padding: 20px; }

/* ---- Image lightbox (a.lb + js/shop.js) ---- */
a.lb { cursor: zoom-in; display: block; }
body.lb-open { overflow: hidden; }
.lb-overlay {
    position: fixed; inset: 0; z-index: 1000; display: none;
    align-items: center; justify-content: center;
    background: rgba(10, 20, 30, .82);
}
.lb-overlay.lb-on { display: flex; }
.lb-img {
    max-width: min(92vw, 1100px); max-height: 86vh; object-fit: contain;
    background: #fff; border-radius: var(--radius); padding: 8px;
}
.lb-close, .lb-prev, .lb-next {
    position: fixed; border: 0; background: none; color: #fff;
    font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 12px;
    opacity: .85;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-counter {
    position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: .88rem; opacity: .85;
}
