/* Titan Graphics product search (theme 1.0.36) */

/* ---------- Header field: shared ---------- */
body.titan-graphics .titan-header-v25 .header-search-wrap { position: relative; }
body.titan-graphics .titan-header-v25 .header-search-toggle {
  width: 44px; height: 44px; min-width: 44px;
}
body.titan-graphics .titan-header-v25 .header-search-toggle .icon-close { display: none; }
body.titan-graphics .titan-header-v25 .header-search-toggle[aria-expanded="true"] .icon-search { display: none; }
body.titan-graphics .titan-header-v25 .header-search-toggle[aria-expanded="true"] .icon-close { display: block; }
body.titan-graphics .titan-header-v25 .header-search-toggle:focus-visible,
body.titan-graphics .titan-header-v25 .header-search input[type="search"]:focus-visible,
body.titan-graphics .titan-header-v25 .header-search .search-submit:focus-visible {
  outline: 2px solid var(--tg-orange); outline-offset: 2px;
}
body.titan-graphics .titan-header-v25 .header-search { align-items: center; gap: 0 !important; }
body.titan-graphics .titan-header-v25 .header-search input[type="search"] {
  height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,0.22); border-right: 0;
  border-radius: var(--tg-radius) 0 0 var(--tg-radius); background: #111; color: #fff;
  font-family: Barlow, system-ui, sans-serif; font-size: 16px; line-height: 44px;
  -webkit-appearance: none; appearance: none;
}
body.titan-graphics .titan-header-v25 .header-search input[type="search"]::placeholder { color: #9a9aa0; opacity: 1; }
body.titan-graphics .titan-header-v25 .header-search input[type="search"]:focus { border-color: var(--tg-orange); outline: none; box-shadow: inset 0 0 0 1px var(--tg-orange); }
body.titan-graphics .titan-header-v25 .header-search button.search-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px !important; min-width: 44px; padding: 0 14px !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 var(--tg-radius) var(--tg-radius) 0 !important;
  background: var(--tg-orange) !important; color: #fff !important; line-height: 1 !important;
  font-size: 15px !important; font-weight: 700 !important; cursor: pointer; box-shadow: none !important;
}
body.titan-graphics .titan-header-v25 .header-search button.search-submit:hover { background: #d95a12 !important; }

/* ---------- Desktop >= 1280px: always-visible field in the header bar ---------- */
@media (min-width: 1280px) {
  body.titan-graphics .titan-header-v25 .header-search-toggle { display: none !important; }
  body.titan-graphics .titan-header-v25 .header-search,
  body.titan-graphics .titan-header-v25 .header-search.is-open {
    display: flex !important; position: relative; top: auto; right: auto;
    width: clamp(190px, 17vw, 260px); max-width: none; padding: 0; background: transparent;
    border: 0; box-shadow: none;
  }
  body.titan-graphics .titan-header-v25 .header-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 40px; line-height: 40px; font-size: 15px; }
  body.titan-graphics .titan-header-v25 .header-search button.search-submit { height: 40px !important; width: 44px; padding: 0 !important; }
  body.titan-graphics .titan-header-v25 .header-search .search-submit-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.titan-graphics .titan-header-v25 .header-search .search-suggest { left: 0; right: auto; width: 380px; }
  body.titan-graphics .titan-header-v25 .header-tools { gap: 12px; }
}

/* ---------- Small desktop 1120-1279px: icon opens a dropdown ---------- */
@media (min-width: 1120px) and (max-width: 1279px) {
  body.titan-graphics .titan-header-v25 .header-search.is-open { width: 380px; max-width: calc(100vw - 24px); }
}

/* ---------- Phones and tablets < 1120px: icon opens a full-width field ---------- */
@media (max-width: 1119px) {
  body.titan-graphics .titan-header-v25 .header-inner,
  body.titan-graphics .titan-header-v25 .header-tools,
  body.titan-graphics .titan-header-v25 .header-tools .header-search-wrap { position: static !important; }
  body.titan-graphics .titan-header-v25 .header-tools .header-search-wrap { display: flex !important; }
  body.titan-graphics .titan-header-v25 .header-tools { gap: 4px; }
  body.titan-graphics .titan-header-v25 .header-search-toggle { color: #fff; }
  body.titan-graphics .titan-header-v25 .header-search.is-open {
    display: flex !important; position: absolute; left: 0; right: 0; top: 100%;
    width: auto; max-width: none; margin: 0; padding: 10px 16px 12px;
    background: var(--tg-header-bg); border: 0; border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 3px solid var(--tg-orange); border-radius: 0; box-shadow: 0 14px 28px rgba(0,0,0,0.35); z-index: 95;
  }
  body.titan-graphics .titan-header-v25 .header-search input[type="search"] { flex: 1 1 auto; min-width: 0; }
  body.titan-graphics .titan-header-v25 .header-search .search-suggest { left: 16px; right: 16px; top: calc(100% - 6px); }
}
@media (max-width: 400px) {
  body.titan-graphics .titan-header-v25 .header-search .search-submit-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.titan-graphics .titan-header-v25 .header-search button.search-submit { width: 48px; padding: 0 !important; }
}

/* ---------- Suggestions ---------- */
body.titan-graphics .search-suggest {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 100;
  margin: 0; padding: 6px; list-style: none; max-height: 70vh; overflow: auto;
  background: #fff; color: #1C1C1E; border-radius: var(--tg-radius);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35); border-top: 3px solid var(--tg-orange);
}
body.titan-graphics .search-suggest[hidden] { display: none !important; }
body.titan-graphics .search-suggest-item {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  min-height: 44px; padding: 8px 10px; border-radius: 6px; cursor: pointer;
  font-family: Barlow, system-ui, sans-serif; font-size: 15px; line-height: 1.25;
}
body.titan-graphics .search-suggest-item .ss-name { font-weight: 600; grid-column: 1; }
body.titan-graphics .search-suggest-item .ss-sku { grid-column: 1; font-size: 12px; color: #6b6b70; letter-spacing: .02em; }
body.titan-graphics .search-suggest-item .ss-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; color: #1C1C1E; white-space: nowrap; }
body.titan-graphics .search-suggest-item.is-active,
body.titan-graphics .search-suggest-item:hover { background: #FDEBDF; }
body.titan-graphics .search-suggest-all { border-top: 1px solid #e6e6e6; margin-top: 4px; color: #c4520f; font-weight: 700; }
body.titan-graphics .search-suggest-none { color: #555; cursor: default; }

/* ---------- Results page ---------- */
body.titan-graphics .titan-search-page .search-hero { padding-bottom: 36px; }
body.titan-graphics .titan-search-page .search-eyebrow {
  margin: 0 0 6px; color: var(--tg-orange); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
body.titan-graphics .titan-search-page .search-hero h1 { overflow-wrap: anywhere; }
body.titan-graphics .titan-search-page .search-count { margin-bottom: 18px; }
body.titan-graphics .titan-search-form.search-page-form { display: flex; max-width: 560px; }
body.titan-graphics .search-page-form input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.25); border-right: 0;
  border-radius: var(--tg-radius) 0 0 var(--tg-radius); background: #111; color: #fff; font-size: 16px; -webkit-appearance: none;
}
body.titan-graphics .search-page-form input[type="search"]:focus { outline: none; border-color: var(--tg-orange); box-shadow: inset 0 0 0 1px var(--tg-orange); }
body.titan-graphics .search-page-form input[type="search"]::placeholder { color: #9a9aa0; opacity: 1; }
body.titan-graphics .search-page-form button.search-submit {
  display: inline-flex; align-items: center; gap: 8px; height: 48px !important; padding: 0 20px !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 var(--tg-radius) var(--tg-radius) 0 !important;
  background: var(--tg-orange) !important; color: #fff !important; font-weight: 700 !important; font-size: 16px !important; cursor: pointer;
}
body.titan-graphics .search-page-form button.search-submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.titan-graphics .titan-search-page .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { body.titan-graphics .titan-search-page .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { body.titan-graphics .titan-search-page .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.titan-graphics .titan-search-page .search-after { margin: 28px 0 0; color: #3a3a3e; }
body.titan-graphics .titan-search-page .search-after a { color: #c4520f; font-weight: 700; }

/* ---------- No results ---------- */
body.titan-graphics .search-empty { color: #1C1C1E; }
body.titan-graphics .search-empty-head h2 { margin: 0 0 8px; font-family: "Bebas Neue", Barlow, sans-serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; letter-spacing: .01em; overflow-wrap: anywhere; }
body.titan-graphics .search-empty-head p { max-width: 680px; margin: 0 0 24px; color: #3a3a3e; }
body.titan-graphics .search-empty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 767px) { body.titan-graphics .search-empty-grid { grid-template-columns: 1fr; } }
body.titan-graphics .search-empty-col { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
body.titan-graphics .search-empty-col h3 { margin: 0 0 12px; font-family: "Bebas Neue", Barlow, sans-serif; font-size: 24px; letter-spacing: .02em; }
body.titan-graphics .search-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.titan-graphics .search-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #d9d6d1; border-radius: 999px;
  background: #F4F2EF; color: #1C1C1E; font-weight: 600; text-decoration: none;
}
body.titan-graphics .search-chips a:hover, body.titan-graphics .search-chips a:focus-visible { border-color: var(--tg-orange); background: #FDEBDF; color: #1C1C1E; outline: none; }
body.titan-graphics .search-empty-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding: 20px 22px; border-radius: 12px; background: #1C1C1E; color: #F4F2EF; border-left: 5px solid var(--tg-orange);
}
body.titan-graphics .search-empty-cta h3 { margin: 0 0 4px; font-family: "Bebas Neue", Barlow, sans-serif; font-size: 26px; color: #fff; }
body.titan-graphics .search-empty-cta p { margin: 0; color: #D4D4D8; }
body.titan-graphics .search-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.titan-graphics .search-empty-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }
body.titan-graphics .search-empty-actions .btn-ghost { color: #fff !important; border: 2px solid rgba(255,255,255,0.4) !important; background: transparent !important; }

/* ---------- Phone header fit: logo + search + basket + menu on one row ---------- */
@media (max-width: 480px) {
  body.titan-graphics .titan-header-v25 .header-inner { padding-left: 16px !important; padding-right: 12px !important; gap: 8px; }
  body.titan-graphics .titan-header-v25 .brand-link { flex: 0 0 auto; margin-right: 0; max-width: none; }
  body.titan-graphics .site-header.titan-header-v25 .brand-link img.brand-logo { width: 140px !important; max-width: 140px !important; height: 32px !important; }
  body.titan-graphics .titan-header-v25 .header-tools { gap: 2px; }
  body.titan-graphics .titan-header-v25 .basket-link,
  body.titan-graphics .titan-header-v25 a.basket-link { padding: 0 6px !important; min-height: 44px !important; }
}
@media (max-width: 359px) {
  body.titan-graphics .site-header.titan-header-v25 .brand-link img.brand-logo { width: 120px !important; max-width: 120px !important; }
  body.titan-graphics .titan-header-v25 a.basket-link { font-size: 0 !important; gap: 4px; }
  body.titan-graphics .titan-header-v25 a.basket-link::before {
    content: ""; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body.titan-graphics .titan-header-v25 a.basket-link .basket-count { font-size: 12px; }
}

/* ---------- 1.0.37: Guides & help ---------- */
body.titan-graphics .titan-search-page .search-section-title { margin: 0 0 16px; font-family: "Bebas Neue", Barlow, sans-serif; font-size: 30px; letter-spacing: .02em; color: #1C1C1E; }
body.titan-graphics .titan-search-page .search-guides { margin-top: 40px; }
body.titan-graphics .titan-search-page .search-no-products { margin: 0 0 8px; color: #3a3a3e; }
body.titan-graphics .titan-search-page .search-no-products a { color: #c4520f; font-weight: 700; }
body.titan-graphics .search-guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 767px) { body.titan-graphics .search-guide-list { grid-template-columns: 1fr; } }
body.titan-graphics .search-guide a { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 44px; padding: 16px 18px; background: #fff; border-radius: 12px; border-left: 4px solid var(--tg-orange); color: #1C1C1E; text-decoration: none; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
body.titan-graphics .search-guide a:hover, body.titan-graphics .search-guide a:focus-visible { box-shadow: 0 6px 18px rgba(0,0,0,0.12); outline: none; }
body.titan-graphics .search-guide a:focus-visible { outline: 2px solid var(--tg-orange); outline-offset: 2px; }
body.titan-graphics .search-guide-kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c4520f; }
body.titan-graphics .search-guide-title { font-weight: 700; font-size: 18px; line-height: 1.25; }
body.titan-graphics .search-guide-excerpt { color: #4a4a50; font-size: 15px; line-height: 1.45; }
body.titan-graphics .search-guide-more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: #1C1C1E; }
body.titan-graphics .search-suggest-label { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b6b70; border-top: 1px solid #e6e6e6; margin-top: 4px; list-style: none; }
body.titan-graphics .search-suggest-item .ss-kind { grid-column: 2; font-size: 12px; color: #6b6b70; }
