/* FAC storefront: clear search, readable references, confirmed cart state. */
[hidden] { display: none !important; }
body a:focus-visible, body button:focus-visible, body input:focus-visible,
body .product-miniature a:focus-visible, #header .fc-action-btn:focus-visible {
  outline: 3px solid #225e91 !important; outline-offset: 3px !important;
}
.fc-home-search { flex-wrap: wrap; gap: 10px; }
.fc-home-search .fc-search-label { flex: 0 0 100%; text-align: left; color: #333; font-size: 14px; font-weight: 700; }
.fc-home-search input { min-width: 0; font-size: 16px !important; }
.fc-search-proof { margin: 16px 0 10px !important; gap: 8px 14px; }
.fc-search-proof span { font-size: 13px; }
.fc-search-lead { max-width: 660px; }
.fc-section-intro { text-align: center; color: #555; margin: -10px auto 22px; max-width: 650px; line-height: 1.6; }
.fc-product-card { display: flex !important; flex-direction: column; align-items: center; gap: 10px; }
.fc-product-card .fc-selection-name { margin: 0 !important; font-size: 15px !important; line-height: 1.45 !important; min-height: 4.35em; }
.fc-product-card .fc-price { margin-top: auto; }
.fc-product-card .fc-card-action { font-size: 13px !important; color: #954014 !important; text-decoration: underline; }
.fc-contact p { max-width: 650px; margin: 0 auto 20px; line-height: 1.6; }
.fc-guide-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 24px; }
.fc-guide-links a { color: #954014; text-decoration: underline; }
.fc-suggest-foot { display: block; width: 100%; padding: 12px; border: 0; background: #fff5e9; color: #753611; cursor: pointer; }
.fc-search-results-header { background: #fff; padding: 22px; margin-bottom: 22px; border-radius: 18px; }
.fc-search-results-header h1 { text-transform: none !important; font-size: 26px; line-height: 1.3; }
.fc-results-search { max-width: 700px; margin: 16px 0; }
.fc-results-search label { display: block; font-weight: 700; }
.fc-results-search > div { display: flex; gap: 10px; }
.fc-results-search input { min-width: 0; flex: 1; padding: 12px; border: 1px solid #aaa; border-radius: 9px; font-size: 16px; }
.fc-results-search button { background: #ab460d; color: #fff; padding: 12px 20px; border: 0; border-radius: 9px; cursor: pointer; }
.product-miniature .product-title { min-height: 4.5em !important; height: auto !important; }
.product-miniature .product-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-transform: none !important; font-size: 14px !important; line-height: 1.5 !important; }
.fc-list-reference { font-size: 12px; color: #555; margin: 8px 0; overflow-wrap: anywhere; }
.fc-compat-help { font-size: 14px !important; line-height: 1.6 !important; margin: 14px 0; }
.fc-compat-help a, .fc-buy-reassurance a { color: #873b14 !important; text-decoration: underline; }
body#product .product-add-to-cart .add-to-cart { background: #ab460d !important; color: #fff !important; border-color: #ab460d !important; }
body#product .product-add-to-cart .add-to-cart i { color: #fff !important; }
body#product .product-add-to-cart .add-to-cart .fc-add-to-cart-label { color: #fff !important; }
body#index .fc-home-search button { background: #ab460d !important; color: #fff !important; }
body#product .product-add-to-cart .add-to-cart:hover { background: #813408 !important; }
body#product .product-add-to-cart .add-to-cart:disabled { opacity: .65; cursor: wait; }
.fc-cart-feedback { margin: 14px 0; padding: 14px; background: #edf8ed; color: #20582a; border: 1px solid #76ad7d; border-radius: 10px; line-height: 1.5 !important; }
.fc-cart-feedback a { display: inline-block; margin: 6px 0 0; color: #20582a !important; text-decoration: underline; font-weight: 700; }
.fc-cart-feedback.is-error { background: #fff0ec; color: #872c1a; border-color: #cb6b55; }
#header .fc-cart-btn.fc-cart-has-products::after { display: none !important; }
#header .fc-cart-btn .fc-cart-count { display: flex !important; align-items: center; justify-content: center; position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 4px; background: #ab460d; color: white; border: 2px solid white; border-radius: 20px; font: 700 11px/1 Arial,sans-serif; }
#header .fc-cart-btn .fc-cart-count[hidden] { display: none !important; }
@media (max-width: 767px) {
  #header .header-top { padding: 8px 0 !important; }
  #header .header-top > .container { width: calc(100% - 24px) !important; padding: 8px 12px !important; border-radius: 18px !important; }
  #header .header-top .row { margin: 0 !important; }
  #header #_desktop_logo { margin: 0 0 4px !important; padding: 0 !important; }
  #header #_desktop_logo img { max-width: 200px !important; width: 200px !important; max-height: 34px !important; height: auto !important; }
  #header .header-top-right { padding: 0 !important; gap: 0 !important; }
  #header .fc-header-actions { gap: 14px !important; }
  #header .fc-action-btn { width: 44px !important; height: 44px !important; box-shadow: none !important; background: #f7f5f1 !important; }
  body#index .fc-search-space { padding: 22px 16px !important; margin-top: 0 !important; }
  body#index .fc-search-space h1 { font-size: 28px !important; line-height: 1.15 !important; }
  body#index .fc-search-lead { font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
  .fc-home-search { flex-direction: row !important; }
  .fc-home-search .fc-search-label, .fc-home-search input, .fc-home-search button { flex: 0 0 100%; width: 100%; }
  .fc-home-search button { min-height: 48px; margin: 0; }
  .fc-search-proof { gap: 6px !important; }
  .fc-search-proof span { font-size: 12px !important; background: transparent !important; box-shadow: none !important; padding: 2px !important; }
  .fc-search-examples { font-size: 13px; }
  .fc-search-help { gap: 10px; }
  .fc-home-new .fc-bubble:hover { transform: none; }
  .fc-product-card .fc-selection-name { font-size: 13px !important; }
  .fc-product-card .fc-card-action { font-size: 12px !important; }
  body #fc-merchant-rating { position: static !important; transform: none !important; margin: 20px auto !important; width: max-content; max-width: calc(100% - 32px); box-shadow: none !important; }
  .fc-results-search > div { flex-wrap: wrap; }
  .fc-results-search input { flex-basis: 100%; }
  .fc-results-search button { width: 100%; }
  .fc-search-results-header h1 { font-size: 23px; }
  .fc-search-bubble { padding: 18px !important; }
  .fc-search-bubble form { flex-wrap: wrap; }
  .fc-search-bubble input, .fc-search-bubble button { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-bubble, .fc-product-card, #header .fc-action-btn { animation: none !important; transition: none !important; transform: none !important; }
}

/* Header search: native modal keeps keyboard focus inside the search. */
body.fc-search-open { overflow: hidden; }
dialog.fc-search-overlay {
  width: 100% !important; max-width: none !important;
  height: 100% !important; max-height: none !important;
  margin: 0 !important; border: 0 !important; box-sizing: border-box;
  background: transparent !important; overflow-y: auto;
  padding-bottom: 24px !important;
}
dialog.fc-search-overlay[open] { display: block !important; }
dialog.fc-search-overlay::backdrop { background: rgba(0,0,0,.48); }
.fc-search-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.fc-search-dialog-heading h2 { margin: 0; font-size: 24px; line-height: 1.3; text-transform: none; color: #292929; }
.fc-search-bubble .fc-search-close { flex: 0 0 auto; width: auto !important; min-height: 44px; padding: 10px 14px !important; background: #f2f0ec !important; color: #292929 !important; border-radius: 8px !important; }
.fc-search-close span { margin-left: 6px; font-size: 20px; }
.fc-search-bubble form { display: block !important; }
.fc-search-bubble label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: #292929; }
.fc-search-dialog-fields { display: flex; gap: 10px; }
.fc-search-bubble input { min-width: 0; width: 100%; font-size: 16px !important; border-color: #888 !important; }
.fc-search-bubble button[type="submit"] { background: #ab460d !important; }
.fc-search-bubble button[type="submit"]:hover { background: #813408 !important; }
#fc-header-search-help { margin: 14px 0 10px; font-size: 14px; line-height: 1.5; color: #555; }
.fc-search-dialog-help { color: #873b14 !important; text-decoration: underline; font-size: 14px; line-height: 1.5; }
@media (max-width: 767px) {
  dialog.fc-search-overlay { padding-top: 24px !important; }
  .fc-search-dialog-heading h2 { font-size: 22px; }
  .fc-search-dialog-fields { flex-wrap: wrap; }
  .fc-search-dialog-fields input, .fc-search-dialog-fields button { flex-basis: 100%; min-height: 48px; }
}
