:root {
  --green: #76b900;
  --green-dark: #5a8d00;
  --ink: #000;
  --canvas: #fff;
  --soft: #f7f7f7;
  --elevated: #1a1a1a;
  --body: #1a1a1a;
  --muted: #757575;
  --hairline: #ccc;
  --hairline-dark: #5e5e5e;
  --on-dark-muted: rgba(255, 255, 255, .7);
  --max-width: 1120px;
  --header-height: 64px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--body);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--body); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.content-shell { width: min(var(--max-width), calc(100% - 32px)); margin-inline: auto; }
.topline { height: 4px; background: var(--green); }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--canvas); box-shadow: 0 0 5px rgba(0, 0, 0, .3); }
.nav-shell { width: min(var(--max-width), calc(100% - 32px)); min-height: var(--header-height); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.brand small { color: var(--on-dark-muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.brand-mark, .corner-square { width: 12px; height: 12px; flex: 0 0 auto; background: var(--green); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: inline-flex; border: 1px solid var(--hairline-dark); }
.language-button { min-height: 34px; padding: 0 8px; border: 0; border-right: 1px solid var(--hairline-dark); background: var(--ink); color: var(--on-dark-muted); font-size: 11px; font-weight: 800; }
.language-button:last-child { border-right: 0; }
.language-button.is-active { background: var(--canvas); color: var(--ink); }
.cart-trigger { position: relative; min-width: 44px; height: 44px; border: 1px solid var(--hairline-dark); border-radius: 2px; background: var(--ink); color: var(--canvas); font-size: 23px; line-height: 1; }
.cart-trigger__count { position: absolute; right: -6px; top: -6px; min-width: 18px; height: 18px; padding: 2px 4px; display: grid; place-items: center; background: var(--green); color: var(--ink); font-size: 10px; font-weight: 800; }

.hero { position: relative; overflow: hidden; min-height: 500px; background: var(--ink); color: var(--canvas); }
.hero-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(var(--hairline-dark) 1px, transparent 1px), linear-gradient(90deg, var(--hairline-dark) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, black, transparent 80%); }
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: min(48vw, 460px); height: min(48vw, 460px); border: 1px solid var(--green); transform: translate(38%, 38%); }
.hero__content { position: relative; z-index: 1; display: grid; align-content: center; min-height: 500px; padding-block: 76px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 1.1px; line-height: 1.4; }
.eyebrow--dark { color: var(--body); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 10ch; margin-bottom: 18px; font-size: clamp(40px, 10vw, 64px); line-height: 1.05; letter-spacing: -1.6px; }
.hero__intro { max-width: 56ch; margin-bottom: 28px; color: var(--on-dark-muted); font-size: 17px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 2px; padding: 11px 16px; font-size: 14px; font-weight: 800; letter-spacing: .1px; text-align: center; }
.button--primary { background: var(--green); border-color: var(--green); color: var(--ink); }
.button--primary:active { background: var(--green-dark); border-color: var(--green-dark); }
.button--outline { background: var(--canvas); border-color: var(--green); color: var(--ink); }
.button--outline-on-dark { background: transparent; border-color: var(--canvas); color: var(--canvas); }
.hero__facts { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 580px; border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark); }
.hero__facts > div { min-height: 78px; padding: 14px 12px 12px 0; display: grid; align-content: center; gap: 3px; border-right: 1px solid var(--hairline-dark); }
.hero__facts > div + div { padding-left: 12px; }
.hero__facts > div:last-child { border-right: 0; }
.hero__facts strong { color: var(--green); font-size: 20px; }
.hero__facts span { color: var(--on-dark-muted); font-size: 10px; font-weight: 800; letter-spacing: .7px; }

.notice-band { background: var(--soft); border-bottom: 1px solid var(--hairline); }
.notice-band__content { min-height: 64px; display: flex; align-items: center; gap: 12px; padding-block: 13px; }
.notice-band p { margin: 0; font-size: 14px; line-height: 1.45; }
.notice-square { width: 12px; height: 12px; flex: 0 0 auto; background: var(--green); }

.catalogue { padding-block: 56px 104px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 22px; }
h2 { margin-bottom: 0; color: var(--ink); font-size: clamp(30px, 7vw, 42px); line-height: 1.1; letter-spacing: -1px; }
.results-count { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-align: right; }
.search-field { display: grid; gap: 8px; margin-bottom: 18px; }
.search-field__label { color: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.search-field__control { height: 48px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--hairline); padding-inline: 14px; background: var(--canvas); }
.search-field__control:focus-within { border: 2px solid var(--green); padding-inline: 13px; }
.search-field__control > span { color: var(--muted); font-size: 22px; }
.search-field input { width: 100%; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-field input::placeholder { color: var(--muted); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-button { min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 2px; background: var(--canvas); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .4px; }
.filter-button.is-active { background: var(--ink); color: var(--canvas); }
.filter-button:not(.is-active) { border-color: var(--hairline); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { position: relative; display: grid; min-width: 0; border: 1px solid var(--hairline); background: var(--canvas); }
.product-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; background: var(--green); z-index: 2; }
.product-media { position: relative; min-height: 142px; overflow: hidden; border-bottom: 1px solid var(--hairline); background-color: var(--soft); background-position: center; background-repeat: no-repeat; background-size: contain; }
.product-media::after { content: "HIGHTAC · PARTS"; position: absolute; right: 7px; bottom: 6px; padding: 2px 4px; background: rgba(255,255,255,.72); color: rgba(0,0,0,.52); font-size: 8px; font-weight: 800; letter-spacing: .6px; pointer-events: none; }
.product-media__shield { position: absolute; inset: 0; z-index: 1; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.product-media[data-image=""] { background-image: none; }
.product-media[data-image=""]::before { content: "NO IMAGE"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.product-card__body { min-width: 0; padding: 16px 12px 12px; display: grid; gap: 8px; }
.product-card__code { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .7px; overflow-wrap: anywhere; }
.product-card h3 { min-height: 43px; margin: 0; color: var(--ink); font-size: 15px; line-height: 1.38; overflow-wrap: anywhere; }
.product-card__model { min-height: 34px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; }
.product-card__price { color: var(--ink); font-size: 15px; font-weight: 800; }
.brand-tag { max-width: 54%; overflow: hidden; border: 1px solid var(--hairline); padding: 3px 6px; color: var(--body); font-size: 9px; font-weight: 800; letter-spacing: .4px; text-overflow: ellipsis; white-space: nowrap; }
.product-quantity-control { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px 48px; min-height: 42px; margin-top: 4px; border: 1px solid var(--green); border-radius: 2px; overflow: hidden; }
.product-quantity-control button { min-width: 0; border: 0; background: var(--canvas); color: var(--ink); font-size: 11px; font-weight: 800; }
.product-quantity-control button[data-delta="10"] { border-right: 1px solid var(--hairline); }
.product-quantity-control button:active { background: var(--green); }
.product-quantity-control input { width: 100%; min-width: 0; border: 0; border-inline: 1px solid var(--hairline); border-radius: 0; background: var(--canvas); color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; text-align: center; }
.product-quantity-control input:focus { position: relative; outline: 2px solid var(--green); outline-offset: -2px; }
.product-quantity-control input::-webkit-inner-spin-button, .product-quantity-control input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.empty-state { position: relative; border: 1px solid var(--hairline); padding: 38px 22px; text-align: center; }
.empty-state .corner-square { position: absolute; top: -1px; left: -1px; }
.empty-state h3 { margin-bottom: 8px; font-size: 18px; }
.empty-state p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.site-footer { background: var(--ink); color: var(--canvas); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; padding-block: 44px; }
.brand--footer { margin-bottom: 14px; }
.site-footer p { margin-bottom: 0; color: var(--on-dark-muted); font-size: 14px; }
.footer-contact { display: grid; align-content: start; gap: 10px; }
.footer-contact strong { color: var(--on-dark-muted); font-size: 10px; letter-spacing: .8px; }
.footer-contact a { color: var(--green); font-size: 14px; font-weight: 800; }

.floating-cart { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15; min-height: 52px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--hairline-dark); border-radius: 2px; padding: 0 12px 0 16px; background: var(--ink); color: var(--canvas); box-shadow: 0 0 5px rgba(0,0,0,.3); font-weight: 800; }
.floating-cart__label { font-size: 12px; letter-spacing: .7px; }
.floating-cart__count { min-width: 25px; min-height: 25px; display: grid; place-items: center; background: var(--green); color: var(--ink); font-size: 11px; }

.cart-dialog { width: min(560px, 100vw); height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; }
.cart-dialog::backdrop { background: rgba(0, 0, 0, .58); }
.cart-dialog__panel { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--canvas); }
.cart-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--hairline); padding: 24px 20px 18px; }
.cart-dialog__header h2 { font-size: 30px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 2px; background: var(--canvas); color: var(--ink); font-size: 28px; line-height: 1; }
.cart-dialog__body { min-height: 0; overflow-y: auto; padding: 12px 20px 18px; }
.cart-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--hairline); padding-block: 14px; }
.cart-item__image { position: relative; width: 68px; height: 68px; overflow: hidden; border: 1px solid var(--hairline); background-color: var(--soft); background-position: center; background-repeat: no-repeat; background-size: contain; }
.cart-item__image::after { content: "HIGHTAC"; position: absolute; right: 3px; bottom: 3px; padding: 1px 2px; background: rgba(255,255,255,.72); color: rgba(0,0,0,.55); font-size: 6px; font-weight: 800; letter-spacing: .3px; pointer-events: none; }
.cart-item__image[data-image=""]::before { content: "NO IMAGE"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .4px; }
.cart-item__code { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.cart-item__name { margin: 0 0 5px; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.35; }
.cart-item__price { margin: 0; color: var(--body); font-size: 13px; font-weight: 800; }
.quantity-control { display: grid; grid-template-columns: 32px 30px 32px; align-self: center; border: 1px solid var(--hairline); }
.quantity-control button { width: 32px; height: 32px; border: 0; background: var(--canvas); color: var(--ink); font-size: 17px; }
.quantity-control span { display: grid; place-items: center; border-inline: 1px solid var(--hairline); font-size: 12px; font-weight: 800; }
.cart-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.cart-empty[hidden] { display: none; }
.cart-dialog__footer { display: grid; gap: 12px; border-top: 1px solid var(--hairline); padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 3px; }
.cart-total span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.cart-total strong { color: var(--ink); font-size: 21px; }
.cart-dialog__footer .button { width: 100%; min-width: 0; padding-inline: 8px; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 40; max-width: calc(100% - 32px); transform: translate(-50%, 18px); opacity: 0; pointer-events: none; border: 1px solid var(--hairline-dark); padding: 10px 14px; background: var(--ink); color: var(--canvas); font-size: 13px; transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 680px) {
  .content-shell, .nav-shell { width: min(var(--max-width), calc(100% - 48px)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .product-media { min-height: 170px; }
}

@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .floating-cart { right: 28px; bottom: 28px; }
}

@media (max-width: 430px) {
  .nav-shell { width: calc(100% - 24px); }
  .brand { font-size: 16px; }
  .language-button { padding-inline: 6px; }
  .hero { min-height: 470px; }
  .hero__content { min-height: 470px; padding-block: 58px; }
  .hero__facts strong { font-size: 17px; }
  .hero__facts span { font-size: 9px; }
  .content-shell { width: calc(100% - 24px); }
  .catalogue { padding-top: 40px; }
  .product-grid { gap: 8px; }
  .product-media { min-height: 124px; }
  .product-card__body { padding: 14px 10px 10px; }
  .product-card h3 { font-size: 13px; }
  .product-card__model { font-size: 10px; }
  .footer-grid { display: grid; }
}
