/*
Theme Name: Syntrix
Description: Minimal classic theme skinning the WooCommerce surfaces (cart, checkout, product, account) in the Syntrix design system. The public site is the Next.js frontend; this theme only dresses the commerce flow.
Version: 1.0.0
Author: Syntrix Engineering
Text Domain: syntrix
*/

:root {
  --paper: #f6f8f7;
  --surface: #ffffff;
  --ink: #0d1b18;
  --slate: #46564f;
  --mist: #dfe7e4;
  --petrol: #0f766e;
  --petrol-deep: #0b594f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Onest", system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Golos Text", system-ui, sans-serif;
  line-height: 1.15;
  color: var(--ink);
}

a { color: var(--petrol); }
a:hover { color: var(--petrol-deep); }

.syx-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.syx-header {
  background: var(--surface);
  border-bottom: 1px solid var(--mist);
}
.syx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.syx-wordmark {
  font-family: "Golos Text", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.syx-wordmark::after {
  content: "";
  width: 7px; height: 7px;
  background: var(--petrol);
  display: inline-block;
}
.syx-header__nav { display: flex; gap: 20px; align-items: center; }
.syx-header__nav a {
  font-size: 15px;
  color: var(--slate);
  text-decoration: none;
}
.syx-header__nav a:hover { color: var(--ink); }
.syx-lang {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.syx-lang a { margin-left: 8px; }

/* Main */
.syx-main { padding: 48px 0 96px; }
.syx-main .woocommerce { font-size: 15px; }

/* Footer */
.syx-footer {
  border-top: 1px solid var(--mist);
  padding: 32px 0;
  font-size: 14px;
  color: var(--slate);
}
.syx-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.syx-footer a { color: var(--slate); text-decoration: none; }
.syx-footer a:hover { color: var(--ink); }
.syx-paymarks { display: flex; gap: 8px; flex-wrap: wrap; }
.syx-paymarks span {
  border: 1px solid var(--mist);
  background: var(--surface);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}
.syx-copyright {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

/* WooCommerce blocks and classic overrides */
.woocommerce .button,
.wc-block-components-button,
.wp-element-button {
  background: var(--petrol) !important;
  color: #fff !important;
  border-radius: 8px !important;
  border: none !important;
  font-weight: 500 !important;
}
.woocommerce .button:hover,
.wc-block-components-button:hover,
.wp-element-button:hover {
  background: var(--petrol-deep) !important;
}
.wc-block-components-order-summary,
.wc-block-cart-items,
.woocommerce-checkout-review-order,
.woocommerce table.shop_table {
  background: var(--surface);
  border: 1px solid var(--mist) !important;
  border-radius: 10px;
}
.wc-block-components-form .wc-block-components-text-input input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--mist);
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--surface);
}
.wc-block-components-form .wc-block-components-text-input input:focus,
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--petrol);
  outline: none;
  box-shadow: none;
}
.woocommerce-message, .wc-block-components-notice-banner.is-success {
  border-top-color: var(--petrol) !important;
}
.woocommerce ul.products li.product .price,
.wc-block-components-product-price,
.woocommerce div.product p.price {
  color: var(--ink) !important;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}
