/* =========================================================================
   wc-overrides.css — replaces woocommerce.css (which is dequeued).
   Styles every WooCommerce-classed element to match our design system.
   ========================================================================= */

/* -------------------------------------------------------------------------
   NOTICES — woocommerce-error / woocommerce-message / woocommerce-info
   WC outputs these as <ul> or <div> with these classes.
   ------------------------------------------------------------------------- */
.woocommerce-notices-wrapper { margin: 0; padding: 0; }

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  list-style: none !important;
  margin: 0 0 12px !important;
  padding: 11px 16px !important;
  border-radius: var(--sh-r-sm, 6px) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif) !important;
  display: block !important;
  border-left: 3px solid transparent !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  width: auto !important;
  position: static !important;
}

.woocommerce-error {
  background: #fff5f5 !important;
  border-left-color: #e53e3e !important;
  color: #742a2a !important;
}

.woocommerce-message {
  background: #f0fff4 !important;
  border-left-color: #38a169 !important;
  color: #22543d !important;
}

.woocommerce-info {
  background: rgba(26,156,156,0.07) !important;
  border-left-color: var(--sh-teal-500, #1A9C9C) !important;
  color: var(--sh-teal-800, #0D5F5F) !important;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Links inside notices */
.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   FORM ROWS — woocommerce-form-row / form-row
   Used on edit-account, lost password, checkout, etc.
   ------------------------------------------------------------------------- */
.woocommerce-form-row,
p.form-row {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  float: none;
  width: 100%;
}

.woocommerce-form-row label,
p.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sh-ink-600, #4a5568);
  margin-bottom: 5px;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
}

/* -------------------------------------------------------------------------
   INPUTS — woocommerce-Input / input-text
   ------------------------------------------------------------------------- */
.woocommerce-Input,
input.input-text,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content textarea {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: var(--sh-ink-75, #f7f8f9);
  border: 1.5px solid transparent;
  border-radius: var(--sh-r-sm, 6px);
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 14px;
  color: var(--sh-ink-950, #0b1012);
  box-shadow: none;
  outline: none;
  margin: 0;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce-MyAccount-content textarea {
  height: auto;
  min-height: 100px;
  padding: 10px 12px;
  resize: vertical;
}

.woocommerce-Input:focus,
input.input-text:focus,
.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus,
.woocommerce-MyAccount-content input[type="tel"]:focus,
.woocommerce-MyAccount-content textarea:focus {
  border-color: var(--sh-teal-500, #1A9C9C);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,156,156,0.10);
}

/* -------------------------------------------------------------------------
   BUTTONS — only explicit WC button classes, never bare .woocommerce button
   (that selector is too broad — WC wraps everything in <div class="woocommerce">)
   ------------------------------------------------------------------------- */
a.woocommerce-Button,
button.woocommerce-Button,
input.woocommerce-Button,
.woocommerce-MyAccount-content .button,
.woocommerce-orders-table .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: var(--sh-teal-600, #1A9C9C);
  color: #fff;
  border: none;
  border-radius: var(--sh-r-sm, 6px);
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
a.woocommerce-Button:hover,
button.woocommerce-Button:hover,
.woocommerce-MyAccount-content .button:hover,
.woocommerce-orders-table .button:hover {
  background: var(--sh-teal-700, #127070);
  color: #fff;
  text-decoration: none;
}

/* -------------------------------------------------------------------------
   TABLES — orders list, order details
   ------------------------------------------------------------------------- */
.woocommerce table.shop_table,
.woocommerce-orders-table,
table.woocommerce-MyAccount-orders {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
}

.woocommerce table.shop_table th,
.woocommerce-orders-table th,
table.woocommerce-MyAccount-orders th {
  text-align: left;
  font-size: 10px;
  font-family: var(--sh-font-mono, 'JetBrains Mono', monospace);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sh-ink-500, #718096);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--sh-ink-150, #e8ecf0);
  font-weight: 500;
}

.woocommerce table.shop_table td,
.woocommerce-orders-table td,
table.woocommerce-MyAccount-orders td {
  padding: 12px;
  border-bottom: 1px solid var(--sh-ink-100, #f0f2f4);
  vertical-align: middle;
  color: var(--sh-ink-700, #2d3748);
}

.woocommerce table.shop_table tr:last-child td,
.woocommerce-orders-table tr:last-child td,
table.woocommerce-MyAccount-orders tr:last-child td {
  border-bottom: none;
}

/* Order status badges */
.woocommerce-orders-table__cell-order-status mark,
.order-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sh-font-mono, 'JetBrains Mono', monospace);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sh-ink-100, #f0f2f4);
  color: var(--sh-ink-600, #4a5568);
}
.order-status.status-completed, mark.status-completed { background: #f0fff4; color: #22543d; }
.order-status.status-processing, mark.status-processing { background: rgba(26,156,156,0.1); color: var(--sh-teal-700, #127070); }
.order-status.status-pending, mark.status-pending { background: #fffbeb; color: #744210; }
.order-status.status-cancelled, mark.status-cancelled { background: #fff5f5; color: #742a2a; }
.order-status.status-on-hold, mark.status-on-hold { background: #ebf8ff; color: #2c5282; }

/* -------------------------------------------------------------------------
   ACCOUNT EDIT FORM — field layout inside .sh-account-content
   ------------------------------------------------------------------------- */
.sh-account-content fieldset {
  border: 1px solid var(--sh-ink-150, #e8ecf0);
  border-radius: var(--sh-r-md, 8px);
  padding: 20px;
  margin: 0 0 24px;
}

.sh-account-content fieldset legend {
  font-size: 11px;
  font-family: var(--sh-font-mono, 'JetBrains Mono', monospace);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-ink-500, #718096);
  padding: 0 6px;
  font-weight: 500;
}

.sh-account-content .woocommerce-form-row {
  margin-bottom: 14px;
}

.sh-account-content .woocommerce-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sh-ink-600, #4a5568);
  margin-bottom: 5px;
}

.sh-account-content .woocommerce-Input,
.sh-account-content input.input-text,
.sh-account-content input[type="text"],
.sh-account-content input[type="email"],
.sh-account-content input[type="password"],
.sh-account-content input[type="tel"] {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 11px;
  background: var(--sh-ink-75, #f7f8f9);
  border: 1px solid var(--sh-ink-200, #e2e8f0);
  border-radius: var(--sh-r-sm, 6px);
  font-size: 13px;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
  color: var(--sh-ink-950, #0b1012);
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.sh-account-content .woocommerce-Input:focus,
.sh-account-content input.input-text:focus,
.sh-account-content input[type="text"]:focus,
.sh-account-content input[type="email"]:focus,
.sh-account-content input[type="password"]:focus {
  border-color: var(--sh-teal-500, #1A9C9C);
  box-shadow: 0 0 0 3px rgba(26,156,156,0.12);
  background: #fff;
}

.sh-account-content button[type="submit"],
.sh-account-content .woocommerce-Button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--sh-teal-600, #1A9C9C);
  color: #fff;
  border: none;
  border-radius: var(--sh-r-sm, 6px);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
}
.sh-account-content button[type="submit"]:hover,
.sh-account-content .woocommerce-Button:hover {
  background: var(--sh-teal-700, #127070);
}

/* Password hint */
.sh-account-content .show-password-input,
.sh-account-content .woocommerce-password-strength {
  font-size: 11px;
  color: var(--sh-ink-500, #718096);
  margin-top: 4px;
}

/* -------------------------------------------------------------------------
   FORM WRAPPERS — strip WC layout chrome
   ------------------------------------------------------------------------- */
.woocommerce-form,
.woocommerce-form-login,
.woocommerce-form-register {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: 100%;
}

/* -------------------------------------------------------------------------
   LOST PASSWORD PAGE
   ------------------------------------------------------------------------- */
.woocommerce-ResetPassword.lost_reset_password .woocommerce-form-row {
  max-width: 480px;
}

/* -------------------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------------------- */
.woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--sh-ink-400, #a0aec0);
  margin-bottom: 16px;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
}
.woocommerce-breadcrumb a {
  color: var(--sh-ink-500, #718096);
  text-decoration: none;
}
.woocommerce-breadcrumb a:hover { color: var(--sh-teal-600, #1A9C9C); }

/* -------------------------------------------------------------------------
   PAGINATION
   ------------------------------------------------------------------------- */
.woocommerce-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.woocommerce-pagination ul li { display: inline-block; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--sh-ink-200, #e2e8f0);
  border-radius: var(--sh-r-sm, 6px);
  font-size: 13px;
  color: var(--sh-ink-600, #4a5568);
  text-decoration: none;
}
.woocommerce-pagination ul li a:hover { border-color: var(--sh-teal-400, #4DB8B8); color: var(--sh-teal-600, #1A9C9C); }
.woocommerce-pagination ul li span.current {
  background: var(--sh-teal-600, #1A9C9C);
  border-color: var(--sh-teal-600, #1A9C9C);
  color: #fff;
}

/* -------------------------------------------------------------------------
   RESULT COUNT
   ------------------------------------------------------------------------- */
.woocommerce-result-count {
  font-size: 12px;
  color: var(--sh-ink-500, #718096);
  font-family: var(--sh-font-mono, 'JetBrains Mono', monospace);
}

/* -------------------------------------------------------------------------
   STAR RATINGS
   ------------------------------------------------------------------------- */
.star-rating { color: var(--sh-gold, #C8B380); }

/* -------------------------------------------------------------------------
   MISC — strip stray WC layout elements
   ------------------------------------------------------------------------- */
.woocommerce-loop-product__link { text-decoration: none; color: inherit; }
.woocommerce-loop-product__link:hover { text-decoration: none; color: inherit; }

/* Clear any WC float-based layouts */
.woocommerce::after,
.woocommerce-page::after { content: ''; display: table; clear: both; }

/* Remove WC's default column widths that fight our grid */
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 { float: none; width: 100%; }

/* -------------------------------------------------------------------------
   PRINT NOTICES WRAPPER — make it flow with our layout, not fixed/absolute
   ------------------------------------------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
