/* Careline klantportaal — house style taken from the OCI catalogue shop (careline.de / carelinebv.nl). */
@font-face { font-family: "Galano"; src: url("/static/fonts/Galano-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Galano"; src: url("/static/fonts/Galano-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Galano"; src: url("/static/fonts/Galano-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Galano"; src: url("/static/fonts/Galano-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --petrol: #194453; --petrol-dark: #10303b; --slate: #3a768a; --teal: #0b7b8f; --teal-dark: #08697a;
  --gold: #b08d2e; --grey: #7f8b90; --panel: #d6e6ec; --panel-light: #ebf3f6;
  --ink: #1b2a30; --muted: #5c6b71; --line: #d9dee0; --warn: #a8421c; --warn-soft: #f8e9e2;
  --ok: #2f7d55; --ok-soft: #e4f2ea;
  --font: "Galano", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; font-size: 15px; overflow-x: clip; display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--petrol); text-decoration: underline dotted 1px; text-underline-offset: 3px; }
a:hover { text-decoration-style: solid; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; color: var(--petrol); }
h1 { font-size: 32px; margin: 28px 0 18px; }
h2 { font-size: 21px; margin: 36px 0 14px; }
h3 { font-size: 16px; margin: 0 0 10px; }
p { margin: 0 0 12px; }
small { font-size: 12.5px; }
.muted, .dim { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
code { background: var(--panel-light); padding: 2px 6px; font-size: 1.05em; }
.pre { white-space: pre-wrap; }

/* ---------------------------------------------------------------- header */
.topbar { background: var(--petrol); color: #fff; font-size: 13px; font-weight: 500; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; flex-wrap: wrap; }
.topbar a, .logout { color: #fff; }
.topbar .dim { color: #a9c3cb; }
.topbar-user { display: inline-flex; gap: 14px; align-items: center; }
.logout { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline dotted 1px; text-underline-offset: 3px; font-size: inherit; font-weight: 500; }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand-logo { height: 30px; width: auto; }
.search { flex: 1; max-width: 460px; margin-left: auto; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line); padding: 0 14px; background: #fff; }
.search input:focus { border-color: var(--petrol); outline: none; }
.cart-button { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; background: var(--petrol); color: #fff; font-weight: 600; text-decoration: none; }
.cart-button:hover { background: var(--petrol-dark); }
.cart-button svg { width: 20px; height: 20px; }
.cart-count { min-width: 22px; height: 22px; background: #fff; color: var(--petrol); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 5px; }

.mainnav, .catnav { border-top: 1px solid var(--line); }
.mainnav ul, .catnav ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.mainnav li + li a { border-left: 1px solid var(--line); }
.mainnav li.sep { margin-left: auto; }
.mainnav li.sep a { border-left: 1px solid var(--line); }
.mainnav a, .catnav a { display: block; padding: 13px 16px; white-space: nowrap; text-decoration: none; color: var(--petrol); font-weight: 500; }
.mainnav a:hover, .catnav a:hover { text-decoration: underline; }
.mainnav a[aria-current="page"] { background: var(--petrol); color: #fff; }
.catnav { border: 1px solid var(--line); border-top: 0; margin: 0 0 8px; background: var(--panel-light); }
.catnav li + li a { border-left: 1px solid var(--line); }
.catnav a { padding: 10px 14px; font-size: 14px; }
.catnav a[aria-current="page"] { background: var(--teal); color: #fff; }

.main { padding-bottom: 64px; flex: 1; }
.logged-out .main { padding-bottom: 80px; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--petrol); color: #fff; padding: 40px 0 44px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.footer p { margin: 0; color: #d4e3e8; }
.footer a { color: #fff; }
.footer-logo { height: 24px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }

/* ---------------------------------------------------------------- shop */
.hero { position: relative; margin: 0 calc(50% - 50vw); background: var(--petrol); color: #fff; overflow: hidden; min-height: 340px; display: flex; align-items: center; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(16, 48, 59, .45); }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 48px 20px; width: 100%; }
.kicker { text-transform: uppercase; font-weight: 500; letter-spacing: .02em; font-size: 15px; margin: 0 0 6px; }
.hero h1 { color: #fff; font-size: 48px; max-width: 760px; margin: 0; }
.hero .lead { margin: 14px 0 0; font-size: 17px; max-width: 620px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 18px; flex-wrap: wrap; }
.section-title h2 { font-size: 24px; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.section-title span { color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 0; }
.crumbs a { color: var(--muted); }

.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.domain-tile { display: flex; flex-direction: column; text-decoration: none; color: #fff; background: var(--petrol); }
.domain-tile.tone-1 { background: var(--teal); } .domain-tile.tone-2 { background: var(--slate); } .domain-tile.tone-3 { background: var(--gold); }
.tile-head { padding: 12px 16px; font-weight: 600; font-size: 18px; }
.tile-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9eef0; display: block; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.domain-tile:hover .tile-media img { transform: scale(1.03); }
.tile-media .arrow { position: absolute; right: 12px; bottom: 8px; color: #fff; font-size: 22px; line-height: 1; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.tile-foot { padding: 8px 16px 10px; font-size: 13px; color: rgba(255, 255, 255, .85); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s; }
.product-card:hover { border-color: var(--petrol); }
.card-media { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0; text-decoration: underline dotted 1px; text-underline-offset: 3px; }
.product-card:hover h3 { text-decoration-style: solid; }
.card-meta { font-size: 13.5px; color: var(--muted); }
.card-price { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--ink); font-size: 18px; }
.card-price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: var(--panel-light); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); grid-column: 1 / -1; }

.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 18px; }
.gallery-main { border: 1px solid var(--line); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 28px; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs a { width: 76px; height: 76px; padding: 4px; border: 1px solid var(--line); background: #fff; }
.thumbs a:hover { border-color: var(--petrol); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: 36px; margin: 0 0 6px; }
.specs { list-style: none; padding: 0; margin: 14px 0; border-top: 1px solid var(--line); }
.specs li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.description { margin: 10px 0; }
.note { padding: 12px 16px; background: var(--panel); color: var(--petrol); font-size: 14px; }
.config { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field-label { display: block; font-weight: 600; color: var(--petrol); margin-bottom: 8px; font-size: 16px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 400; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: #fff; padding: 9px 14px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.pill:hover { border-color: var(--petrol); }
.pill[aria-current="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.pill small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pill[aria-current="true"] small { color: #cfe1e6; }
.buy { margin-top: 10px; padding: 22px 24px 24px; background: var(--panel); }
.price-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.price-total strong { font-size: 28px; color: var(--petrol); }
.price-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.buy-row { display: flex; gap: 10px; }
.qty input { width: 80px; height: 46px; text-align: center; }

/* ---------------------------------------------------------------- forms & buttons */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--petrol); font-size: 14px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
input, select, textarea { min-height: 42px; border: 1px solid var(--line); padding: 8px 12px; background: #fff; width: 100%; font-weight: 400; color: var(--ink); }
textarea { min-height: 0; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; min-height: 0; accent-color: var(--petrol); }
input[type=file] { padding: 6px; }
input:focus, select:focus, textarea:focus { border-color: var(--petrol); outline: none; }
fieldset { border: 1px solid var(--line); padding: 10px 14px; margin: 0; }
legend { font-size: 14px; font-weight: 600; color: var(--petrol); padding: 0 4px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > label { flex: 1 1 160px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
form.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters select, form.inline select { width: auto; }
.titleinput { font-size: 28px; font-weight: 600; color: var(--petrol); border-color: transparent; padding: 2px 6px; }
.titleinput:hover { border-color: var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 20px; border: 1px solid var(--petrol); background: #fff; color: var(--petrol); cursor: pointer; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { background: var(--panel-light); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary::after { content: "→"; font-weight: 400; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.dark { background: var(--petrol); color: #fff; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.grow { flex: 1; min-height: 46px; }
.linkbtn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline dotted 1px; text-underline-offset: 3px; padding: 0; }

/* ---------------------------------------------------------------- panels, notices */
.card { background: var(--panel-light); padding: 22px 24px; margin: 18px 0; }
.card h2, .card h3 { margin-top: 0; }
.narrow { max-width: 520px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; margin: 18px 0; }
.cols .card { margin: 0; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagehead h1 { margin-bottom: 18px; }
.flash { padding: 12px 16px; margin: 18px 0 0; font-size: 14px; border-left: 3px solid var(--ok); background: var(--ok-soft); }
.flash.err, .notice.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.flash.err { margin: 0 0 14px; }
.notice, .hint { font-size: 14px; padding: 12px 14px; background: var(--panel-light); color: var(--ink); border-left: 3px solid var(--slate); margin: 0 0 14px; }
.hint ul { margin: 6px 0 0; padding-left: 18px; }
.err { color: var(--warn); }

.login { max-width: 440px; margin: 64px auto 0; padding: 32px; background: var(--panel-light); }
.login h1 { font-size: 30px; margin: 0 0 10px; }
.login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.login-form .btn { min-height: 46px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 8px; }
.tile { background: var(--panel-light); padding: 18px 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; border-top: 4px solid var(--petrol); }
a.tile:hover { background: var(--panel); }
.tile strong { font-size: 26px; font-weight: 600; color: var(--petrol); line-height: 1.2; }
.tile span { color: var(--muted); font-size: 14px; }
.tile.upsell { border-top-color: var(--gold); }

/* ---------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; }
.table th { text-align: left; font-weight: 600; color: var(--petrol); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; padding: 10px 10px; border-bottom: 2px solid var(--petrol); white-space: nowrap; }
.table td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover td { background: #f6fafb; }
.table tfoot td { border-bottom: 0; padding-top: 8px; }
.table.compact td { padding: 6px 10px; }
.num { text-align: right !important; white-space: nowrap; }
tr.inactive td, tr.muted-row td { color: var(--muted); }
tr.unavailable td { background: var(--warn-soft); }
.priceinput { width: 8rem; text-align: right; }
.qtyinput { width: 5.5rem; text-align: right; }
.thumb img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.scroll { overflow-x: auto; }

.status { display: inline-block; padding: 2px 10px; font-size: 12.5px; font-weight: 600; background: var(--panel); color: var(--petrol); white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.s-submitted { background: #f6ecd2; color: #7a5d12; }
.s-delivered, .s-completed { background: var(--ok-soft); color: var(--ok); }
.s-cancelled { background: #eee; color: var(--muted); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); max-width: 860px; }
.facts dt, .facts dd { padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); padding-right: 24px; }

/* ---------------------------------------------------------------- beheer */
.light { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 3px; background: #ddd; }
.l-red { background: #c8392b; } .l-yellow { background: #e0a526; } .l-green { background: #3c9a5f; } .l-none { background: #fff; border: 1px dashed #8a979c; }
.lightsum { white-space: nowrap; font-size: 14px; }
.lightsum .light { margin-left: 6px; } .lightsum .light:first-child { margin-left: 0; }
.cond { display: inline-block; padding: 1px 8px; font-size: 12.5px; white-space: nowrap; font-weight: 500; }
.c1, .c2 { background: var(--ok-soft); color: var(--ok); } .c3 { background: #eef0f1; } .c4 { background: #f6ecd2; color: #7a5d12; } .c5, .c6 { background: var(--warn-soft); color: var(--warn); }
.lifebar { width: 64px; height: 8px; vertical-align: middle; }
.legend { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.legend .light, .legend .sw { margin-left: 10px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.pages img { display: block; max-width: 900px; width: 100%; margin: 0 auto 16px; border: 1px solid var(--line); }
.upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 18px; padding: 12px 14px; background: var(--panel-light); }
.upload select, .upload input[type=file] { width: auto; }
.docs { padding-left: 18px; }
.docs li { margin: 4px 0; }
.chart { background: #fff; border: 1px solid var(--line); padding: 18px; margin: 18px 0; }
.chart svg { width: 100%; height: auto; }
.chart .axis { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.chart .axis.small { font-size: 10px; }
.chart .base { stroke: var(--line); }
.c-furn { fill: var(--petrol); background: var(--petrol); } .c-floor { fill: var(--gold); background: var(--gold); }
.c-kitchen { fill: var(--teal); background: var(--teal); } .c-other { fill: var(--grey); background: var(--grey); }
.sw { display: inline-block; width: 11px; height: 11px; }
.timeline { list-style: none; padding: 0; margin: 0 0 18px; }
.timeline li { border-left: 3px solid var(--panel); padding: 4px 0 12px 14px; }
.urg { font-size: 13.5px; } .u-high { color: #7a5d12; font-weight: 600; } .u-urgent { color: var(--warn); font-weight: 700; }
.lines input, .lines select { min-height: 36px; padding: 4px 8px; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
  .hero { min-height: 260px; } .hero h1 { font-size: 32px; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; min-height: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-label { display: none; }
  .cart-button { margin-left: auto; }
  .mainnav li.sep { margin-left: 0; }
  .table { display: block; overflow-x: auto; }
  h1 { font-size: 26px; }
}
@media (max-width: 520px) {
  .wrap, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .topbar-inner > span:first-child { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 4px 10px 12px; }
  .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; }
}
.main > p:first-child, .main > .flash + p { margin-top: 22px; }
