/*
Theme Name: Saitrix
Description: Minimal headless-companion theme for cms.saitrix.uz. Skins the WooCommerce cart, checkout, account and product surfaces in the Saitrix "signal line" design system: porcelain surfaces, charcoal ink, one vermilion signal accent, pill buttons, hairline borders.
Version: 1.0.0
Author: SAITRIX LLC
Text Domain: saitrix
*/

:root {
  --stx-porcelain: #faf9f6;
  --stx-surface: #ffffff;
  --stx-wash: #f1efe9;
  --stx-ink: #1c1b1a;
  --stx-graphite: #57534e;
  --stx-line: #e7e4dd;
  --stx-track: #8b867e;
  --stx-signal: #c2331b;
  --stx-signal-deep: #9e2612;
  --stx-radius-card: 16px;
  --stx-font-display: "Geologica", system-ui, sans-serif;
  --stx-font-body: "Commissioner", system-ui, sans-serif;
  --stx-font-data: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--stx-porcelain);
  color: var(--stx-ink);
  font-family: var(--stx-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--stx-font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--stx-ink);
}

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

:focus-visible {
  outline: 2px solid var(--stx-signal);
  outline-offset: 2px;
}

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

/* Header */
.stx-header {
  background: var(--stx-surface);
  border-bottom: 1px solid var(--stx-line);
}
.stx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.stx-wordmark {
  font-family: var(--stx-font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--stx-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.stx-wordmark::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--stx-signal);
}
.stx-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
}
.stx-header__nav a {
  color: var(--stx-graphite);
  text-decoration: none;
}
.stx-header__nav a:hover { color: var(--stx-ink); }
.stx-lang ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.stx-lang a {
  font-family: var(--stx-font-data);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Main */
.stx-main { padding: 48px 0 96px; }
.stx-main .stx-container > h1:first-child { font-size: 34px; }

/* Footer */
.stx-footer {
  border-top: 1px solid var(--stx-line);
  background: var(--stx-porcelain);
  padding: 28px 0;
}
.stx-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}
.stx-footer p {
  margin: 0;
  font-family: var(--stx-font-data);
  font-size: 12px;
  color: var(--stx-graphite);
}
.stx-footer .stx-payments {
  color: var(--stx-track);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* WooCommerce surface skinning */
.woocommerce-page .stx-main :is(button, .button, .wc-block-components-button),
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background: var(--stx-signal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 600;
  font-family: var(--stx-font-body);
  padding: 12px 26px;
}
.woocommerce-page .stx-main :is(button, .button, .wc-block-components-button):hover {
  background: var(--stx-signal-deep) !important;
}

.wc-block-components-order-summary,
.wc-block-cart-items,
.wc-block-components-sidebar .wc-block-components-panel,
.woocommerce-checkout-review-order,
.wc-block-components-totals-wrapper {
  font-variant-numeric: tabular-nums;
}

.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(--stx-line);
  border-radius: 10px;
  background: var(--stx-surface);
}

.wc-block-components-checkout-step__heading .wc-block-components-title,
.wc-block-components-checkout-step__title {
  font-family: var(--stx-font-display);
}

.woocommerce-message, .wc-block-components-notice-banner.is-success {
  border-color: var(--stx-signal);
}

/* Product page */
.woocommerce div.product p.price {
  font-family: var(--stx-font-data);
  color: var(--stx-ink);
  font-size: 22px;
}
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product #tab-description {
  color: var(--stx-graphite);
}

img { max-width: 100%; height: auto; border-radius: var(--stx-radius-card); }

@media (max-width: 640px) {
  .stx-header__inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .stx-main { padding-top: 28px; }
}
