/* =========================================================================
   AltTune — WooCommerce SHARED base (foundation file).
   Everything Woo-related scopes under `.at-woo` — the content wrapper added
   by inc/woocommerce.php (woocommerce_before_main_content). Per-area rules
   live in woo-header.css / woo-catalog.css / woo-cart-checkout.css.

   Idiom sources: tokens.css (colors/type/spacing), hubspot-forms.css
   (.at-form input chrome — quiet steel-silver borders, BLACK focus, orange
   only as a meaningful accent).
   ========================================================================= */

/* -------------------------------------------------------------------------
   Form fields — match the theme's .at-form input chrome.
   Covers Woo's stock inputs (checkout, account, coupon, quantity, reviews).
   ---------------------------------------------------------------------- */
.at-woo input[type="text"],
.at-woo input[type="email"],
.at-woo input[type="tel"],
.at-woo input[type="number"],
.at-woo input[type="password"],
.at-woo input[type="search"],
.at-woo input[type="url"],
.at-woo textarea,
.at-woo select {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-1);
  background: #fff;
  border: 1px solid var(--steel-silver);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color var(--dur-base) ease;
}

.at-woo input:hover,
.at-woo textarea:hover,
.at-woo select:hover {
  border-color: var(--rubber-black-50);
}

.at-woo input:focus,
.at-woo textarea:focus,
.at-woo select:focus {
  outline: none;
  border-color: var(--rubber-black);
  box-shadow: none;
}

.at-woo textarea { resize: vertical; min-height: 120px; }

.at-woo label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-1);
}

.at-woo .required { color: var(--performance-orange); text-decoration: none; }

.at-woo input[type="checkbox"],
.at-woo input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--rubber-black);
  cursor: pointer;
  padding: 0;
}

/* -------------------------------------------------------------------------
   Quantity input
   ---------------------------------------------------------------------- */
.at-woo .quantity { display: inline-flex; align-items: center; }

.at-woo .quantity .qty {
  width: 76px;
  text-align: center;
  padding: 11px 8px;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* -------------------------------------------------------------------------
   Notices — woocommerce-message / -error / -info restyled to theme tokens
   (quiet silver surface, status color only on the left rule + icon text).
   ---------------------------------------------------------------------- */
.at-woo .woocommerce-message,
.at-woo .woocommerce-error,
.at-woo .woocommerce-info,
.at-woo .woocommerce-notice,
.at-shop-notice {
  position: relative;
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 14px 16px 14px 20px;
  background: var(--steel-silver-100);
  border: 0;
  border-left: 3px solid var(--rubber-black);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-1);
}
/* Suppress WooCommerce's default notice icon (woocommerce-font glyph absolutely
   positioned at left:1.5em). We use a coloured left rule instead, and the tight
   left padding above left the glyph overlapping the message text. */
.at-woo .woocommerce-message::before,
.at-woo .woocommerce-error::before,
.at-woo .woocommerce-info::before,
.at-woo .woocommerce-notice::before {
  content: none;
  display: none;
}

.at-woo .woocommerce-error,
.at-shop-notice--error {
  border-left-color: var(--danger);
  background: #fbeae6;
  color: var(--danger);
}

.at-woo .woocommerce-info,
.at-shop-notice--info {
  border-left-color: var(--info);
}

.at-woo .woocommerce-message,
.at-shop-notice--success {
  border-left-color: var(--success);
}

.at-woo .woocommerce-error li { margin: 0; }
.at-woo .woocommerce-error li + li { margin-top: 6px; }

/* Notice action button (e.g. "View cart") — defer to the global .at-btn
   language; just keep WC's inline button from floating awkwardly. */
.at-woo .woocommerce-message .button,
.at-woo .woocommerce-info .button {
  float: right;
  margin-left: var(--space-4);
}

/* -------------------------------------------------------------------------
   Price typography — display-font figures; sale = del in quiet silver,
   ins in black with a thin orange underline accent (no orange surfaces).
   ---------------------------------------------------------------------- */
.at-woo .price,
.at-woo .woocommerce-Price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}

.at-woo .price del {
  font-weight: 500;
  color: var(--fg-3);
  text-decoration: line-through;
  margin-right: 8px;
}

.at-woo .price ins {
  text-decoration: none;
  color: var(--fg-1);
  box-shadow: inset 0 -2px 0 var(--performance-orange);
}

/* Sale flash badge — black chip, mono micro-label, orange tick (accent only). */
.at-woo .onsale {
  display: inline-block;
  background: var(--rubber-black);
  color: var(--pure-white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid var(--performance-orange);
}

/* -------------------------------------------------------------------------
   Shared resets inside the wrapper
   ---------------------------------------------------------------------- */
.at-woo .woocommerce-breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--space-5);
}

.at-woo .woocommerce-breadcrumb a {
  color: var(--fg-2);
  text-decoration: none;
  transition: color var(--dur-base) ease;
}

.at-woo .woocommerce-breadcrumb a:hover { color: var(--fg-1); }
