/* Svitlo UX 1.3.0 — stage 5.5: header actions (search, cart), search panel, compact header on phones. All pages. */
.sux-hdr-actions[hidden], .sux-search[hidden] { display: none !important; }
.sux-hdr-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 6px; }
.sux-hdr-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #1f2937; cursor: pointer; padding: 0; text-decoration: none; }
.sux-hdr-btn:hover, .sux-hdr-btn[aria-expanded="true"] { background: #eef3f8; color: #1c4e84; }
.sux-cart-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #6cb33f; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
.sux-cart-n[hidden] { display: none; }
/* desktop: only the search button is added, next to the theme cart */
.cspt-search-cart-box .sux-hdr-search { margin-right: 6px; }

/* search panel (below the header) */
.sux-search { position: relative; z-index: 9980; background: #fff; border-bottom: 1px solid #e5e9ee; box-shadow: 0 8px 18px rgba(0, 0, 0, .06); padding: 12px 16px 14px; }
.sux-search__form { display: flex; gap: 8px; max-width: 760px; margin: 0 auto; }
.sux-search__form input[type=search] { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 12px; font-size: 16px; border: 1px solid #d6dbe1; border-radius: 8px; }
.sux-search__form input[type=search]:focus { outline: none; border-color: #1c4e84; box-shadow: 0 0 0 3px rgba(28, 78, 132, .18); }
.sux-search__form button[type=submit] { min-height: 46px; padding: 0 16px; border: 0; border-radius: 8px; background: #1c4e84; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.sux-search__x { width: 46px; min-height: 46px; border: 1px solid #d6dbe1 !important; border-radius: 8px; background: #fff !important; color: #374151 !important; font-size: 18px; cursor: pointer; padding: 0 !important; }
.sux-search__cats { display: flex; gap: 8px; overflow-x: auto; max-width: 760px; margin: 10px auto 0; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.sux-search__cats a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #d6dbe1; border-radius: 18px; color: #1f2937; font-size: 14px; text-decoration: none; white-space: nowrap; }

/* phones & tablets: compact header that stays at the top, slimmer dealer bar */
@media (max-width: 1199px) {
  #page.site { overflow: clip !important; }   /* overflow:hidden of the theme disables position:sticky; clip cuts the same way */
  header#masthead.site-header { position: sticky; top: 0; z-index: 9970; background: #fff; box-shadow: 0 1px 0 #e5e9ee; }
  .cspt-header-top-area { background: #fff; }
  .cspt-header-top-area .site-branding img.cspt-main-logo { max-height: 44px; width: auto; }
  .sux-search { position: sticky; top: 76px; }
  .cspt-header-top-area .sux-hdr-actions { margin-right: 52px; }   /* the theme burger is absolutely positioned on the right */
  .cspt-header-menu-area-wrapper, .cspt-header-menu-area { min-height: 0 !important; height: 0 !important; padding: 0 !important; border: 0 !important; }
  .cspt-header-top-area .container > .d-flex { height: auto !important; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
  .cspt-header-top-area { padding: 0 !important; }
  .wholesale-banner { padding-top: 6px !important; padding-bottom: 6px !important; font-size: 14px !important; line-height: 1.35 !important; }
  .wholesale-banner img { max-height: 16px; width: auto; vertical-align: -2px; }
}

/* Customizer CSS keeps body padding-top 60px on phones for the old fixed theme header: our header is sticky instead */
@media (max-width: 768px) { html body { padding-top: 0 !important; } }
/* 769–1199 px: the dealer bar is fixed at the top (Customizer CSS) — keep our sticky header below it */
@media (min-width: 769px) and (max-width: 1199px) { header#masthead.site-header { top: 50px; } .sux-search { top: 126px; } }
/* desktop: search button in the top row next to the phone (the menu row keeps its full width) */
.cspt-header-top-area .cspt-header-info .sux-hdr-search { margin-left: 14px; }
.cspt-header-top-area .cspt-header-info { display: flex; align-items: center; }

/* wholesale request form of the theme header (#wholesaleModal) — all pages */
#wholesaleModal .modal-content { max-width: 440px; width: calc(100% - 32px); box-sizing: border-box; border-radius: 12px; padding: 20px; }
#wholesaleModal form input { width: 100%; min-height: 46px; font-size: 16px; margin: 0 0 10px; padding: 0 12px; border: 1px solid #d6dbe1; border-radius: 8px; box-sizing: border-box; }
#wholesaleModal form input.sux-wh-bad { border-color: #c62828; background: #fff8f8; }
#wholesaleModal form button { width: 100%; min-height: 48px; border: 0; border-radius: 8px; background: #1c4e84; color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
#wholesaleModal form button[disabled] { opacity: .7; cursor: wait; }
#wholesaleModal .sux-wh-status { margin: 10px 0 0; font-size: 14px; color: #374151; min-height: 1em; }
#wholesaleModal .sux-wh-status.is-error { color: #c62828; }
#wholesaleModal .sux-wh-ok { margin: 4px 0 14px; padding: 14px; border-radius: 10px; background: #e8f5e9; color: #1b5e20; font-size: 16px; font-weight: 600; line-height: 1.45; }
