/* IT Workshop shop. Same look as the landing page: black, gold, white, Fibonacci spacing. */
:root {
  --black: #231F20; --black-2: #2E2A2B; --gold: #F2A51F; --gold-dark: #D98C0A; --gold-text: #8A5600;
  --bg: #F5F4F2; --line: #E8E5E1; --text: #3A3637; --muted: #6B6667; --red: #C62828; --green: #2E7D32; --wa: #1FA855;
  --s1: 3px; --s2: 5px; --s3: 8px; --s4: 13px; --s5: 21px; --s6: 34px; --s7: 55px; --s8: 89px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Open Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--black); margin: 0; line-height: 1.2; }
a { color: var(--black); }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 var(--s5); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); padding: var(--s3); z-index: 9; }
.skip:focus { left: var(--s3); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s5); border-radius: var(--s1); border: 2px solid transparent;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; background: none; color: var(--black); }
.btn.gold { background: var(--gold); color: var(--black); }
.btn.gold:hover { background: var(--gold-dark); color: var(--black); }
.btn.dark { background: var(--black); color: #fff; }
.btn.dark:hover { background: var(--black-2); color: #fff; }
.btn.ghost { border-color: var(--black); }
.btn.ghost:hover { background: var(--black); color: #fff; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa:hover { background: #178A45; color: #fff; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn.big { min-height: 55px; font-size: 15px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header and footer */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s3); padding-bottom: var(--s3); flex-wrap: wrap; }
.brand img { display: block; width: 160px; height: auto; }
.nav { display: flex; gap: var(--s5); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.nav a { text-decoration: none; padding: var(--s3) 0; border-bottom: 2px solid transparent; }
.nav a.on { border-bottom-color: var(--gold); }
.site-foot { background: var(--black); color: #D9D5D0; margin-top: var(--s8); }
.site-foot h2 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s3); }
.site-foot a { color: #fff; }
.site-foot p { margin: 0; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(233px, 1fr)); gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s6); }
.foot-base { border-top: 1px solid #3F3A3B; padding-top: var(--s5); padding-bottom: var(--s5); font-size: 13px; color: #9E9893; }
.wa-float { position: fixed; right: var(--s5); bottom: var(--s5); width: 55px; height: 55px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 21px rgba(0,0,0,.25); z-index: 6; }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

/* Shop list */
.shop-hero { background: var(--black); color: #D9D5D0; padding: var(--s6) 0; }
.shop-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: var(--s3) 0; }
.shop-hero p { margin: 0; max-width: 610px; }
.crumbs { font-size: 13px; color: var(--muted); }
.shop-hero .crumbs, .shop-hero .crumbs a { color: #BDB7B1; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.chips { display: flex; gap: var(--s3); overflow-x: auto; padding: var(--s5) 0 var(--s3); scrollbar-width: thin; }
.chips a { flex: none; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; background: #fff; }
.chips a span { color: var(--muted); font-weight: 400; margin-left: var(--s1); }
.chips a.on { background: var(--black); color: #fff; border-color: var(--black); }
.chips a.on span { color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; padding: var(--s4); background: var(--bg); border-radius: var(--s4); margin-top: var(--s4); }
.filters input, .filters select { min-height: 44px; padding: 0 var(--s4); border: 1px solid #D6D1CB; border-radius: var(--s1); font: inherit; font-size: 15px; background: #fff; color: var(--text); }
.filters .f-search { flex: 1 1 233px; }
.filters .f-search input { width: 100%; }
.filters .f-price input { width: 100px; }
.filters .f-check { display: flex; align-items: center; gap: var(--s2); font-size: 14px; }
.filters .f-check input { min-height: 0; width: 18px; height: 18px; }
.filters .clear { font-size: 14px; }
.count { color: var(--muted); font-size: 14px; margin: var(--s5) 0 var(--s4); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s5); }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--s5); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 34px rgba(35,31,32,.1); transform: translateY(-2px); }
.card-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 120px; height: 84px; fill: none; stroke: #B8B2AB; stroke-width: .8; stroke-linejoin: round; }
.tag { position: absolute; top: var(--s4); left: var(--s4); padding: var(--s1) var(--s3); border-radius: 999px; background: var(--black); color: var(--gold); font-size: 13px; font-weight: 700; }
.tag.save { left: auto; right: var(--s4); background: var(--red); color: #fff; }
.tag.sold { background: var(--red); color: #fff; }
.tag.reserved { background: var(--gold); color: var(--black); }
.tag.big { font-size: 15px; padding: var(--s2) var(--s4); }
.card.is-sold .card-img img { filter: grayscale(1); opacity: .6; }
.card-body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); flex-grow: 1; }
.card-body h3 { font-size: 18px; font-weight: 800; }
.card-body h3 a { text-decoration: none; }
.cond { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-text); }
.specs { margin: 0; font-size: 14px; color: #5A5455; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-top: auto; padding-top: var(--s3); flex-wrap: wrap; }
.price { margin: 0; font-size: 21px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.price s { margin-left: var(--s3); font-size: 14px; font-weight: 400; color: var(--muted); }
.warranty { margin: 0; font-size: 13px; font-weight: 700; }
.card-actions { display: flex; gap: var(--s3); }
.card-actions .btn.dark { flex: 1; }
.card-actions .btn.wa { padding: 0 var(--s4); }
.card .btn.ghost { width: 100%; }
.empty { text-align: center; padding: var(--s7) var(--s5); background: var(--bg); border-radius: var(--s5); }
.empty p { max-width: 520px; margin: var(--s4) auto var(--s5); }
.pager { display: flex; justify-content: center; align-items: center; gap: var(--s5); margin-top: var(--s6); font-weight: 600; }
.pager span { color: var(--muted); }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(233px, 1fr)); gap: var(--s5); margin-top: var(--s7); padding: var(--s6) var(--s5); background: var(--bg); border-radius: var(--s5); }
.promise div { display: flex; flex-direction: column; gap: var(--s2); padding-left: var(--s4); border-left: 3px solid var(--gold); }
.promise strong { font-family: 'Montserrat', sans-serif; color: var(--black); }
.promise span { font-size: 14px; color: var(--muted); }

/* Product page */
.product { padding-top: var(--s5); }
.product-grid { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s6); margin-top: var(--s5); align-items: start; }
.gallery { min-width: 0; }
.stage { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--s5); background: var(--bg); scrollbar-width: none; }
.stage::-webkit-scrollbar { display: none; }
.stage figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.stage figure a { display: block; width: 100%; height: 100%; }
.stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage .tag { position: absolute; }
.no-photo { flex-direction: column; gap: var(--s4); color: var(--muted); text-align: center; padding: var(--s5); }
.thumbs { display: flex; gap: var(--s3); margin-top: var(--s3); overflow-x: auto; }
.thumbs button { flex: none; width: 77px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--s3); overflow: hidden; background: var(--bg); cursor: pointer; }
.thumbs button.on { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buy { display: flex; flex-direction: column; gap: var(--s4); }
.buy h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.tags { display: flex; gap: var(--s3); flex-wrap: wrap; }
.pill { padding: var(--s1) var(--s3); border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pill.gold { background: var(--black); color: var(--gold); border-color: var(--black); }
.price-block { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.price.big { font-size: 34px; }
.was { margin: 0; color: var(--muted); }
.save { color: var(--red); font-weight: 700; }
.assure { list-style: none; margin: 0; padding: var(--s4) var(--s5); background: var(--bg); border-radius: var(--s4); display: flex; flex-direction: column; gap: var(--s2); font-size: 15px; }
.assure li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: var(--s3); }
.assure li.no::before { content: '✕'; color: var(--red); }
.assure li.warn::before { content: '!'; color: var(--gold-dark); }
.assure li.ok { font-weight: 700; color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.actions .btn.wa, .actions > .btn.gold { flex: 1 1 100%; }
.actions .btn.ghost { flex: 1; }
.highlights { margin: 0; padding-left: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.product-more { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s6); margin-top: var(--s7); align-items: start; }
.product-more h2, .related h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin: var(--s6) 0 var(--s4); }
.product-more section > h2:first-child { margin-top: 0; }
.prose { max-width: 680px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38.2%; color: var(--muted); font-weight: 600; }
.spec-table tr:nth-child(odd) { background: #FAFAF9; }
.grades { margin: 0; display: grid; gap: var(--s3); }
.grades div { display: flex; gap: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--s3); border: 1px solid var(--line); }
.grades div.on { border-color: var(--gold); background: #FFF8EA; }
.grades dt { font-weight: 700; min-width: 72px; }
.grades dd { margin: 0; }
.enquire { position: sticky; top: 89px; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--s5); background: #fff; }
.enquire h2 { margin-top: 0; }
.enquire p { margin: 0 0 var(--s4); }
.enquire form { display: flex; flex-direction: column; gap: var(--s4); }
.enquire label { display: flex; flex-direction: column; gap: var(--s2); font-size: 14px; font-weight: 600; }
.enquire input, .enquire textarea { min-height: 44px; padding: var(--s3) var(--s4); border: 1px solid #D6D1CB; border-radius: var(--s1); font: inherit; font-weight: 400; }
.enquire textarea { min-height: 89px; resize: vertical; }
.enquire .err { background: #FDECEA; color: var(--red); padding: var(--s3) var(--s4); border-radius: var(--s3); margin-bottom: var(--s4); font-size: 14px; }
.related { margin-top: var(--s6); }

@media (max-width: 860px) {
  .nav { order: 3; width: 100%; justify-content: space-between; gap: var(--s4); }
  .head-wa { display: none; }
  .brand img { width: 130px; }
  .product-grid, .product-more { grid-template-columns: 1fr; gap: var(--s5); }
  .enquire { position: static; }
  .stage { border-radius: var(--s4); }
  .filters .f-price input { width: 89px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s4); }
  .card-body { padding: var(--s4); }
  .card-body h3 { font-size: 16px; }
  .price { font-size: 18px; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}
