/* Te Rapa Mowers & Chainsaws — draft site styles (mobile-first) */
:root {
  --black: #161616;
  --red: #D42D3E;        /* trying 25 Nov 2026; before that #AD2831, original #6b0504 */
  --red-bright: #e0414f; /* original #8f0a08 */
  --tint: #fdeaec;
  --yellow: #FEF104;      /* trying 25 Nov 2026; tried #FFED66 and #FFD23F, original #eeb902 */
  --yellow-dark: #e8dc00; /* original #d1a202 */
  --ink: #1a1a1a;
  --muted: #5f5f5f;
  --line: #e2e0dc;
  --bg: #f7f6f3;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--red-bright); margin-bottom: .6em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Draft bar */
.draft-bar { background: #fff3cd; color: #5c4400; font-size: .82rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid #ecd98a; }

/* Top strip + header */
.top-strip { background: var(--black); color: #d6d6d6; font-size: .85rem; }
.top-strip .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-block: 7px; }
.top-strip a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { background: var(--white); border-bottom: 4px solid var(--yellow); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 42px; height: 42px; border-radius: 9px; background: var(--red); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none; }
.logo-text { font-weight: 800; line-height: 1.1; font-size: 1.05rem; }
.logo-text span { display: block; font-weight: 600; font-size: .74rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
/* Header: black bar, with a red panel behind the logo (even space on both sides) */
.site-header { background: var(--black); }
.site-header .wrap { align-items: stretch; padding-block: 0; }
.site-header .cart-link, .site-header .nav-toggle { align-self: center; margin-block: 10px; }
.logo { background: var(--red); padding: 10px 9px; }
.site-header .logo-img { height: 50px; margin-block: -4px; }
.site-header .wrap { gap: 10px; }
@media (min-width: 880px) { .logo { padding: 10px 28px; } .site-header .logo-img { height: 78px; margin-block: -8px; } }
.site-header .cart-link, .site-header .nav-toggle { background: var(--white); border-color: transparent; color: var(--ink); }
@media (min-width: 880px) {
  .site-header .nav { background: transparent; align-items: center; }
  .site-header .nav a { color: #fff; }
  .site-header .nav a:hover { background: rgba(255, 255, 255, .15); }
  .site-header .nav a[aria-current="page"] { color: var(--black); background: var(--yellow); }
}
.logo-img { display: block; height: 62px; width: auto; max-width: 62vw; object-fit: contain; margin-block: -6px; }
@media (min-width: 880px) { .logo-img { height: 78px; max-width: none; margin-block: -8px; } }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 600; cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; flex-direction: column; }
.nav.open { display: flex; }
.nav a { padding: 11px 4px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--red); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.cart-count { background: var(--yellow); color: var(--black); border-radius: 99px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .78rem; padding: 0 6px; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; gap: 4px; border: 0; padding: 0; }
  .nav a { border: 0; padding: 8px 12px; border-radius: 8px; }
  .nav a:hover { background: var(--tint); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-green { background: var(--red); color: #fff; }
.btn-green:hover { background: #b0222f; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--tint); }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { color: #fff; background: var(--red); }
.hero .wrap { padding-block: 64px 56px; }
.hero h1 { max-width: 17ch; }
.hero .lead { color: #fff; }
.rating { display: inline-flex; align-items: center; gap: 10px; background: var(--black); border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: .92rem; margin-bottom: 18px; color: #fff; text-decoration: none; }
.stars { color: var(--yellow); letter-spacing: 2px; }
.page-hero { background: var(--red); color: #fff; border-bottom: 6px solid var(--yellow); }
.page-hero .wrap { padding-block: 40px; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.page-hero p { color: #fff; margin: 0; max-width: 62ch; }

/* Promo */
.promo { background: var(--yellow); color: var(--black); }
.promo .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-block: 14px; font-weight: 600; }
.promo a { color: var(--black); }

/* Grids & cards */
.grid { display: grid; gap: 18px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge { width: 52px; height: 52px; border-radius: 12px; background: var(--tint); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.icon-badge svg { width: 34px; height: 34px; }
.cat-card { text-decoration: none; color: inherit; display: block; transition: transform .12s, border-color .12s; }
.cat-card:hover { transform: translateY(-2px); border-color: var(--red-bright); }
.cat-card:has(.cat-img) { padding: 0; overflow: hidden; }
.cat-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s; }
.cat-card:hover .cat-img { transform: scale(1.03); }
.cat-body { padding: 18px 22px 22px; }
.cat-img-product { object-fit: contain; background: #fff; }
.ego-img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.section.ego .split { align-items: center; }

.brands { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.brands li { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font-weight: 700; color: var(--black); }
.brands-main li { font-size: 1.25rem; padding: 14px 26px; border-color: var(--red); border-width: 2px; }

.quote { border-left: 4px solid var(--yellow); }
.quote blockquote { margin: 0 0 10px; font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--red-bright); font-weight: 800; }

.split { display: grid; gap: 32px; }
@media (min-width: 880px) { .split { grid-template-columns: 1.1fr .9fr; align-items: start; } }

/* Info table */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { font-weight: 600; color: var(--muted); width: 42%; }
.tbc { background: #fff3cd; color: #5c4400; border-radius: 5px; padding: 1px 7px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); display: block; }

/* Forms */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .93rem; display: grid; gap: 5px; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid #c9c6c1; border-radius: 8px; background: #fff; width: 100%; color: var(--ink); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(212,45,62,.4); outline-offset: 1px; }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 6px 0; }
.radio input { width: auto; margin-top: 4px; }
.notice { border-radius: var(--radius); padding: 14px 16px; background: var(--tint); border: 1px solid #f3c2c9; }
.notice.warn { background: #fff3cd; border-color: #ecd98a; color: #5c4400; }
[hidden] { display: none !important; }

/* Shop */
.shop-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; font-size: .92rem; border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 7px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.shop-bar .search { flex: 1 1 200px; max-width: 320px; margin-left: auto; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-img { background: linear-gradient(160deg, var(--tint), #f7f1ee); color: var(--red); aspect-ratio: 4 / 3; display: grid; place-items: center; border: 0; width: 100%; cursor: pointer; position: relative; }
.product-img svg { width: 46%; height: auto; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--yellow); color: var(--black); font-size: .74rem; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.product-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; background: none; border: 0; padding: 0; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; }
.product-name:hover { color: var(--red); text-decoration: underline; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--black); }
.price small { font-size: .74rem; font-weight: 600; color: var(--muted); }
.product-body .btn { margin-top: auto; }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(680px, calc(100% - 24px)); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(0,0,0,.6); }
.dlg-inner { padding: 22px; }
.dlg-close { float: right; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.dlg-img { background: var(--tint); color: var(--red); border-radius: var(--radius); display: grid; place-items: center; padding: 18px; margin-bottom: 16px; }
.dlg-img svg { width: 140px; }

/* Cart */
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--tint); color: var(--red); display: grid; place-items: center; }
.cart-thumb svg { width: 36px; }
/* Real product photos (usually on white) */
.product-img:has(.prod-photo), .dlg-img:has(.prod-photo), .cart-thumb:has(.prod-photo) { background: #fff; }
.prod-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-img .prod-photo { position: absolute; inset: 0; padding: 12px; box-sizing: border-box; }
.dlg-img .prod-photo { max-height: 280px; }
.cart-thumb { overflow: hidden; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.qty button { font: inherit; font-weight: 700; width: 32px; height: 32px; border: 0; background: var(--bg); cursor: pointer; }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .86rem; color: var(--muted); text-decoration: underline; cursor: pointer; margin-left: 10px; }
.totals { display: grid; gap: 6px; margin: 16px 0; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.25rem; font-weight: 800; border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--black); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 24px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--yellow); white-space: nowrap; }

/* Footer */
.site-footer { background: var(--black); color: #d6d6d6; border-top: 6px solid var(--yellow); padding: 44px 0 20px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; font-size: .82rem; color: #a3a3a3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; }
.footer-bottom .credit { margin-left: auto; text-align: right; white-space: nowrap; }

/* Sticky mobile call bar */
.call-bar { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 40; box-shadow: 0 -2px 10px rgba(0,0,0,.15); }
.call-bar a { text-align: center; padding: 13px 8px; font-weight: 700; text-decoration: none; color: #fff; background: var(--red); }
.call-bar a + a { background: var(--yellow); color: var(--black); }
body { padding-bottom: 50px; }
@media (min-width: 880px) { .call-bar { display: none; } body { padding-bottom: 0; } }
