/* Corsia — accessibility fixes (2026-09-22).
   Contrast + focus visibility. Loaded after style.css/bot.css at priority 120.
   Revert: remove the require_once for inc/a11y-fixes.php in inc/quickview.php. */

/* --- Focus ring contrast: gold (2.25:1) -> maroon (6.98:1). קדברה 1.10 / WCAG 2.4.7 --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible{
  outline: 3px solid var(--maroon, #9B2D22) !important;
  outline-offset: 2px !important;
}

/* Block/checkout inputs replaced the outline with a faint shadow — give them a real ring */
.wc-block-components-text-input input:focus-visible,
.wc-block-checkout__form input:focus-visible,
.woocommerce-checkout input:focus-visible,
.woocommerce form .form-row input.input-text:focus-visible{
  outline: 2px solid var(--maroon, #9B2D22) !important;
  outline-offset: 1px !important;
}

/* Search-overlay field had outline:none !important and no visible focus — restore one */
.cs-search-form input[type=search]:focus,
.cs-search-form input[type=search]:focus-visible{
  outline: 2px solid var(--maroon, #9B2D22) !important;
  outline-offset: 2px !important;
}

/* --- Form-field border contrast: gold-soft (1.28:1) -> #A8791C (3.6:1 on cream, 3.9:1 on white) --- */
.woocommerce form .form-row input.input-text,
.woocommerce-checkout input[type=text],
.woocommerce-checkout input[type=email],
.woocommerce-checkout input[type=tel],
.woocommerce-checkout input[type=password],
.woocommerce-checkout input[type=number],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.wc-block-components-text-input input,
.woocommerce-account form .form-row input,
.select2-selection{
  border-color: #A8791C !important;
}

/* --- Product-category card label: #897b74 on white (4.08:1) -> #6E5545 (6.9:1) --- */
.ast-woo-product-category,
.woocommerce ul.products li.product .ast-woo-product-category{
  color: #6E5545 !important;
}

/* --- Breadcrumb text: #777 on white (4.47:1) -> #666 (5.7:1) --- */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a{
  color: #666666 !important;
}

/* --- Screen-reader-only H1 (injected by inc/a11y-fixes.php where a page renders none) --- */
.cs-sr-h1{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;
}
