/*
Theme Name: EdgeTurn Tools
Theme URI: https://example.com/
Author: EdgeTurn Tools
Description: WooCommerce theme for a specialist woodturning, CBN wheel, sharpening, and shop supplies store.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: edgeturn-tools
*/

:root {
  --color-ink: #202326;
  --color-muted: #626970;
  --color-line: #d8dde1;
  --color-panel: #f4f6f7;
  --color-steel: #46606b;
  --color-copper: #b65425;
  --color-safety: #e2a90c;
  --color-forest: #2f5a46;
  --color-white: #ffffff;
  --shadow-soft: 0 12px 30px rgba(32, 35, 38, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-strip {
  align-items: center;
  background: #171a1d;
  color: var(--color-white);
  display: flex;
  font-size: 13px;
  gap: 22px;
  justify-content: center;
  padding: 8px 20px;
  text-align: center;
}

.top-strip span {
  color: rgba(255, 255, 255, 0.78);
}

.top-strip span:first-child {
  color: var(--color-white);
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 20px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 230px;
}

.brand-mark {
  align-items: center;
  background: var(--color-ink);
  border-radius: 6px;
  color: var(--color-white);
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-tagline {
  color: var(--color-muted);
  font-size: 12px;
}

.main-nav ul {
  display: flex;
  gap: 18px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #384047;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--color-copper);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.button,
button,
input[type="submit"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-copper);
  border: 1px solid var(--color-copper);
  border-radius: 6px;
  color: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  padding: 11px 16px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #97451f;
  border-color: #97451f;
  color: var(--color-white);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-line);
}

.button.secondary:hover {
  background: var(--color-panel);
  border-color: #bdc6cc;
  color: var(--color-ink);
}

.site-main {
  min-height: 60vh;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(23, 26, 29, 0.95), rgba(32, 35, 38, 0.76) 52%, rgba(32, 35, 38, 0.58)),
    url("assets/hero-workshop.svg") center/cover;
  color: var(--color-white);
}

.hero-inner {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 570px;
  padding: 86px 20px 72px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  margin: 0 0 18px;
  max-width: 850px;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  margin: 0 0 28px;
  max-width: 650px;
}

.eyebrow {
  color: var(--color-safety);
  display: inline-block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--color-white);
}

.hero-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 150px));
  margin: 38px 0 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 14px;
}

.hero-metrics dt {
  font-size: 24px;
  font-weight: 850;
}

.hero-metrics dd {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin: 0;
}

.hero-panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  border-top: 5px solid var(--color-safety);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  color: var(--color-ink);
  padding: 24px;
}

.hero-panel h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.spec-list li {
  border-bottom: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding-bottom: 10px;
}

.fitment-link {
  color: var(--color-copper);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  margin-top: 18px;
}

.quick-shop {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}

.quick-shop-inner {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px;
}

.quick-shop a {
  border-left: 1px solid var(--color-line);
  color: #30373d;
  font-size: 14px;
  font-weight: 800;
  padding: 18px 16px;
  text-align: center;
}

.quick-shop a:last-child {
  border-right: 1px solid var(--color-line);
}

.quick-shop a:hover {
  background: var(--color-panel);
  color: var(--color-copper);
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--color-panel);
}

.section-header {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
}

.section-header p {
  color: var(--color-muted);
  margin: 6px 0 0;
}

.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  min-height: 184px;
  padding: 18px;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card:hover {
  border-color: #b9c2c8;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.category-code {
  color: var(--color-copper);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 34px;
}

.category-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.category-card span {
  color: var(--color-muted);
  display: block;
  font-size: 14px;
}

.category-card strong + span {
  line-height: 1.45;
}

.product-preview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-preview {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  min-height: 238px;
  padding: 18px;
}

.product-preview h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 28px 0 10px;
}

.product-preview p {
  color: var(--color-muted);
  font-size: 14px;
  min-height: 66px;
}

.product-preview strong {
  color: var(--color-copper);
  display: block;
  font-size: 20px;
}

.product-badge {
  background: #e8f1ed;
  border-radius: 999px;
  color: var(--color-forest);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
}

.buying-guide {
  background: #263137;
  color: var(--color-white);
}

.guide-layout {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
}

.buying-guide h2 {
  font-size: 34px;
  line-height: 1.18;
  margin: 0 0 14px;
}

.buying-guide p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  margin: 0;
}

.guide-steps {
  display: grid;
  gap: 12px;
}

.guide-steps div {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px 1fr;
  padding: 14px;
}

.guide-steps strong {
  align-items: center;
  background: var(--color-safety);
  border-radius: 6px;
  color: var(--color-ink);
  display: inline-flex;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.trust-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  border-left: 4px solid var(--color-safety);
  padding: 8px 0 8px 16px;
}

.trust-item strong {
  display: block;
}

.trust-item span {
  color: var(--color-muted);
  font-size: 14px;
}

.woocommerce ul.products {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.woocommerce ul.products li.product {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
  width: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  min-height: 50px;
}

.woocommerce ul.products li.product .price {
  color: var(--color-copper);
  font-size: 18px;
  font-weight: 850;
}

.woocommerce div.product {
  margin: 0 auto;
  max-width: 1180px;
  padding: 38px 20px;
}

.site-footer {
  background: #171a1d;
  color: var(--color-white);
  padding: 48px 20px;
}

.footer-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  margin: 0 auto;
  max-width: 1180px;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 860px) {
  .header-inner,
  .hero-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .category-grid,
  .product-preview-grid,
  .trust-row,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-shop-inner,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .quick-shop a {
    border-right: 1px solid var(--color-line);
  }
}

@media (max-width: 560px) {
  .top-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-quote {
    display: inline-flex;
  }

  .category-grid,
  .product-preview-grid,
  .trust-row,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
