/* Wilchart Enterprises — brand colours from the brand pack */
:root {
  --navy: #0B2D4D;
  --navy-2: #12406b;
  --red: #E11D2E;
  --red-2: #c01624;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #111827;
  --grey: #6B7280;
  --line: #E5E7EB;
  --soft: #EEF3F8;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --bad: #b91c1c;
  --bad-bg: #fee2e2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 45, 77, .06), 0 4px 16px rgba(11, 45, 77, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--grey); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-2); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: #fff; color: var(--bad); border-color: #fca5a5; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.lg { padding: 14px 26px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--grey); cursor: pointer; text-decoration: underline; }

/* Forms */
label { font-weight: 600; font-size: .85rem; display: block; color: #1f2a37; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=tel], input[type=date],
input[type=search], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #cfd8e3; border-radius: 10px;
  font: inherit; font-size: .95rem; line-height: 1.4; background-color: #fff; color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #9aa5b4; }
input:hover, select:hover, textarea:hover { border-color: #9fb0c3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11, 45, 77, .12); }
textarea { min-height: 112px; resize: vertical; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B2D4D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select[multiple] { background-image: none; padding-right: 14px; }
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--navy); flex-shrink: 0; cursor: pointer; box-shadow: none; }
input[disabled], select[disabled], textarea[disabled] { background: #f3f5f8; color: var(--grey); cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.form-grid .field { margin-bottom: 0; }
.field .req { color: var(--red); margin-left: 2px; }
.field .help { font-size: .8rem; color: var(--grey); line-height: 1.4; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(185, 28, 28, .08); }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--bad); font-size: .82rem; font-weight: 500; }
.errorlist.nonfield { background: var(--bad-bg); border-left: 4px solid var(--bad); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }

/* At most two columns, so related fields stay together; wide fields span the row. */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.field.wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); } }

/* Checkbox as a card you can click anywhere on */
.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fafbfd; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.check:hover { border-color: #9fb0c3; }
.check:has(input:checked) { border-color: var(--navy); background: #f1f5fa; }
.check input { margin-top: 1px; }
.check b { display: block; font-weight: 600; color: #1f2a37; font-size: .9rem; }
.check span { font-size: .8rem; color: var(--grey); font-weight: 400; }

/* Form card: titled sections, then an action bar */
.card.form-card { max-width: 920px; padding: 0; overflow: hidden; }
.card.form-card.narrow { max-width: 620px; }
.form-section { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.form-section-head .num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-section-head h3 { margin: 0; font-size: 1rem; }
.form-section-head p { margin: 2px 0 0; font-size: .82rem; color: var(--grey); }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 24px; background: #f8fafc; border-top: 1px solid var(--line); }
.form-actions .grow { flex: 1; }
.form-actions .note { font-size: .8rem; color: var(--grey); }
@media (max-width: 720px) { .form-section, .form-actions { padding: 18px 16px; } .form-actions .btn { flex: 1; } }

.choices { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.choices label, .radio-card {
  display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--text);
  border: 1px solid #cfd8e3; background: #fff; border-radius: 10px; padding: 12px 14px; cursor: pointer;
}
.choices input, .radio-card input { margin-top: 2px; }
.choices label:has(input:checked), .radio-card:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: #f7f9fc; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 16px 0; }
.messages li { padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; background: var(--soft); border-left: 4px solid var(--navy); }
.messages .success { background: var(--ok-bg); border-color: var(--ok); }
.messages .error { background: var(--bad-bg); border-color: var(--bad); }
.messages .warning { background: var(--warn-bg); border-color: var(--warn); }

/* Cards & tables */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); font-weight: 700; background: #fafbfc; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 2px solid var(--navy); }
tr.sub td { font-weight: 700; background: #fafbfc; }
tbody tr:hover { background: #fbfcfe; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--soft); color: var(--navy); white-space: nowrap; }
.badge.paid, .badge.completed, .badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.issued, .badge.pending, .badge.partial, .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.void, .badge.cancelled, .badge.bad, .badge.overdue { background: var(--bad-bg); color: var(--bad); }
.badge.draft { background: #f1f5f9; color: var(--grey); }

/* ---------- Storefront ---------- */
.topbar { background: var(--navy); color: #cbd5e1; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .bar { display: flex; align-items: center; gap: 20px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 46px; height: 46px; }
.brand .word { display: flex; flex-direction: column; line-height: 1; border-left: 2px solid var(--red); padding-left: 10px; }
.brand .word b { font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -.5px; }
.brand .word span { font-size: .55rem; letter-spacing: .38em; color: var(--navy); margin-top: 4px; }
.search { flex: 1; display: flex; max-width: 560px; }
.search input { border-radius: 8px 0 0 8px; border-right: 0; }
.search button { border-radius: 0 8px 8px 0; }
.header-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.cart-link:hover { background: var(--soft); }
.cart-count { background: var(--red); color: #fff; font-size: .72rem; border-radius: 99px; padding: 1px 7px; font-weight: 700; }
.catnav { border-top: 1px solid var(--line); background: #fff; }
.catnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav a { padding: 10px 12px; white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--navy); border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav a.active { border-bottom-color: var(--red); color: var(--navy); }
@media (max-width: 720px) {
  .site-header .bar { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand svg { width: 38px; height: 38px; }
  .brand .word b { font-size: 1.1rem; }
}

.hero { background: linear-gradient(120deg, var(--navy) 0%, #0e3a63 60%, #164a7a 100%); color: #fff; overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3rem); }
.hero h1 em { font-style: normal; color: #ff5a67; }
.hero p { color: #d6e2ee; font-size: 1.05rem; max-width: 520px; }
.hero .emblem-big { justify-self: center; opacity: .95; width: min(320px, 70%); }
.hero .usp { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; font-size: .85rem; color: #d6e2ee; }
.hero .usp span::before { content: "✓ "; color: #ff5a67; font-weight: 700; }
@media (max-width: 720px) { .hero .container { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; } .hero .emblem-big { display: none; } }

.section { padding-top: 36px; padding-bottom: 36px; }  /* top/bottom only: keeps .container side gutters */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; position: relative; padding-left: 14px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: var(--red); border-radius: 2px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; font-weight: 600; font-size: .9rem; transition: .15s; }
.cat-tile svg { display: block; width: 36px; height: 36px; margin: 0 auto 8px; color: var(--navy); }
.cat-tile:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.product-card:hover { box-shadow: var(--shadow); border-color: #cbd5e1; }
.product-card .thumb { aspect-ratio: 4 / 3; background: var(--soft); display: flex; align-items: center; justify-content: center; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.thumb .ph { width: 42%; height: auto; color: #9fb3c8; }
.product-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .brandname { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); font-weight: 700; }
.product-card .name { font-weight: 600; color: var(--text); font-size: .92rem; line-height: 1.35; }
.product-card .price { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.price s { color: var(--grey); font-weight: 500; font-size: .85em; margin-left: 6px; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.tag.out { background: var(--grey); }
.stock { font-size: .8rem; font-weight: 600; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--bad); }
.stock.low { color: var(--warn); }

.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.filters a { display: block; padding: 6px 10px; border-radius: 6px; font-size: .9rem; }
.filters a.active { background: var(--navy); color: #fff; }
.filters h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); margin: 18px 0 6px; }
@media (max-width: 820px) { .shop-layout { grid-template-columns: 1fr; } .filters { display: none; } }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pdp .gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pdp .gallery img { max-height: 100%; object-fit: contain; padding: 16px; }
.pdp .price { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.pdp .buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.pdp .buy input { width: 80px; }
.specs { width: 100%; }
.specs th { width: 40%; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--navy); background: #fafbfc; }
.perks { display: grid; gap: 8px; margin-top: 16px; font-size: .88rem; }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } }

.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
@media (max-width: 820px) { .checkout { grid-template-columns: 1fr; } }

.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 72px; height: 72px; background: var(--soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-item .thumb img { object-fit: contain; width: 100%; height: 100%; background: #fff; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 64px; padding: 6px 8px; }

.steps { display: flex; gap: 0; margin: 20px 0; }
.steps div { flex: 1; text-align: center; font-size: .78rem; font-weight: 600; color: var(--grey); position: relative; padding-top: 22px; }
.steps div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line); z-index: 1; }
.steps div::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps div:first-child::after { display: none; }
.steps div.done { color: var(--navy); }
.steps div.done::before, .steps div.done::after { background: var(--red); }

.site-footer { background: var(--navy); color: #c7d4e2; margin-top: 48px; font-size: .9rem; }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .9rem; }
.site-footer a { color: #c7d4e2; display: block; padding: 2px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 16px; text-align: center; font-size: .78rem; }
.site-footer .footer-logo { max-width: 230px; margin-bottom: 10px; }
@media (max-width: 720px) { .site-footer .container { grid-template-columns: 1fr 1fr; } .site-footer .container > :first-child { grid-column: 1 / -1; } }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .9rem; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.wa-float { position: fixed; right: 16px; bottom: 16px; background: #25D366; color: #fff; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 30; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Office (back office) ---------- */
.office { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.office-side { background: var(--navy); color: #c7d4e2; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.office-side .brand .word b, .office-side .brand .word span { color: #fff; }
.office-side .brand { padding: 0 8px 18px; }
.office-side .brand svg { width: 38px; height: 38px; }
.office-side h5 { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #7f9ab5; margin: 18px 10px 6px; }
.office-side a { display: block; color: #dbe5ef; padding: 7px 10px; border-radius: 6px; font-size: .88rem; font-weight: 500; }
.office-side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.office-side a.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.office-main { padding: 24px 28px 48px; min-width: 0; }
.office-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.office-top h1 { margin: 0; font-size: 1.5rem; }
.office-menu-btn { display: none; }
@media (max-width: 900px) {
  .office { grid-template-columns: 1fr; }
  .office-side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 50; }
  .office-side.open { transform: none; }
  .office-menu-btn { display: inline-flex; }
  .office-main { padding: 16px; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); font-weight: 700; }
.kpi .value { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi.alert .value { color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .bar:last-child { background: var(--red); }
.bars-labels { display: flex; gap: 6px; font-size: .65rem; color: var(--grey); margin-top: 4px; }
.bars-labels span { flex: 1; text-align: center; }
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.filters-bar input, .filters-bar select { width: auto; min-width: 160px; min-height: 40px; }
.filters-bar label { font-size: .78rem; color: var(--grey); margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; font-weight: 600; font-size: .88rem; color: var(--grey); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--red); }
.lines-table input, .lines-table select { min-height: 38px; padding: 7px 10px; font-size: .88rem; border-radius: 8px; }
.lines-table select { padding-right: 32px; background-position: right 10px center; }
.lines-table .w-num { width: 96px; text-align: right; }
.lines-table .w-hs { width: 100px; }
.fiscal-box { display: flex; gap: 16px; align-items: center; border: 1px dashed var(--navy); border-radius: 8px; padding: 12px 14px; margin-top: 18px; font-size: .85rem; }
.fiscal-box svg { width: 120px; height: 120px; flex-shrink: 0; }
.fiscal-box .code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: 1px; }
.lines-table td { padding: 6px; }
.totals { margin-left: auto; max-width: 340px; }
.empty { text-align: center; padding: 40px 16px; color: var(--grey); }

/* Printable invoice */
.doc { background: #fff; max-width: 860px; margin: 24px auto; padding: 40px 44px; box-shadow: var(--shadow); border-radius: 4px; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 3px solid var(--navy); padding-bottom: 18px; }
.doc-head img { width: 280px; }
.doc-title { text-align: right; }
.doc-title h1 { font-size: 1.8rem; margin: 0; letter-spacing: 1px; text-transform: uppercase; }
.doc-title .red-rule { height: 3px; width: 60px; background: var(--red); margin: 8px 0 8px auto; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; font-size: .9rem; }
.doc-meta h4 { margin: 0 0 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); }
.doc table th { background: var(--navy); color: #fff; }
.doc .foot { margin-top: 28px; font-size: .82rem; color: var(--grey); border-top: 1px solid var(--line); padding-top: 14px; }
.print-bar { max-width: 860px; margin: 16px auto 0; display: flex; gap: 8px; justify-content: flex-end; padding: 0 16px; }
.stamp { display: inline-block; border: 3px solid var(--ok); color: var(--ok); font-weight: 800; padding: 4px 14px; transform: rotate(-6deg); border-radius: 6px; letter-spacing: 2px; }
@media print {
  body { background: #fff; }
  .print-bar { display: none; }
  .doc { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .doc table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 14mm; }
}
@media (max-width: 640px) { .doc { padding: 20px 16px; margin: 0; } .doc-head { flex-direction: column; } .doc-title { text-align: left; } .doc-title .red-rule { margin-left: 0; } .doc-meta { grid-template-columns: 1fr; } .doc-head img { width: 220px; } }

/* HP partner badge, repair centre */
.hp-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); border: 1px solid #cbd5e1; border-radius: 99px; padding: 4px 12px 4px 4px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.hp-badge b { background: #0096D6; color: #fff; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-style: italic; }
.hp-badge-img { height: 40px; width: auto; display: inline-block; }
.catnav a.nav-repair { color: var(--red); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.how-grid .card { margin: 0; }
.how-n { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 8px; }
.hero .emblem-big svg { width: 100%; height: auto; color: #fff; opacity: .9; }
.hero-repair .emblem-big { width: min(260px, 60%); }
.cart-link svg { width: 18px; height: 18px; }
.promo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.promo > div { padding: 28px; }
.promo .promo-side { background: var(--navy); color: #d6e2ee; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.promo .promo-side h3 { color: #fff; }
@media (max-width: 720px) { .promo { grid-template-columns: 1fr; } }
/* Till rolls band (home page) */
.rolls-band { background: linear-gradient(180deg, #EEF3F8 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.rolls-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rolls-head h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; position: relative; padding-left: 14px; }
.rolls-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--red); border-radius: 2px; }
.rolls-head p { margin: 0; color: var(--grey); padding-left: 14px; }
.roll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.roll-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: .15s; }
.roll-card:hover { border-color: #b8c7d8; box-shadow: var(--shadow); transform: translateY(-2px); }
.roll-card.popular { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.roll-flag { position: absolute; top: -10px; right: 14px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.roll-top { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; color: var(--text); }
.roll-top:hover { color: var(--text); }
.roll-icon { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.roll-icon svg { width: 28px; height: 28px; }
.roll-size { font-size: 1.45rem; font-weight: 800; color: var(--navy); letter-spacing: -.5px; line-height: 1.1; }
.roll-size small { font-size: .7em; font-weight: 600; color: var(--grey); margin: 0 1px; }
.roll-kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.roll-fits { margin: 0; font-size: .85rem; color: var(--grey); min-height: 2.6em; }
.roll-buy { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.roll-buy b { display: block; font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.roll-buy span { font-size: .78rem; color: var(--grey); }
.roll-buy small { display: block; font-size: .75rem; color: var(--ok); font-weight: 600; margin-top: 2px; }
.rolls-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .88rem; color: var(--grey); }
.rolls-note svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
@media (max-width: 520px) { .roll-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .roll-card { padding: 14px; } .roll-top { grid-template-columns: 1fr; } .roll-icon { display: none; } .roll-size { font-size: 1.2rem; } .roll-buy { flex-direction: column; align-items: stretch; } .roll-buy .btn { width: 100%; } }

/* Enquiries (prices hidden) */
.price.por, b.por { color: var(--navy); font-weight: 700; font-size: .95rem; }
.pdp .price.por { font-size: 1.4rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquire-product { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.enquire-product .thumb { width: 84px; height: 84px; flex-shrink: 0; background: var(--soft); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.enquire-product .thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.enquire-product .thumb .ph { width: 50%; }
.thanks-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.nav-count { background: var(--red); color: #fff; border-radius: 99px; font-size: .68rem; font-weight: 700; padding: 1px 7px; margin-left: 6px; }

/* QR codes (segno SVGs scale to their box; this is the default size) */
svg.segno { display: block; width: 120px; height: 120px; max-width: 100%; background: #fff; }
.fiscal-box svg.segno { width: 120px; height: 120px; }
.job-qr svg.segno { width: 96px; height: 96px; margin-left: auto; }
