/* SHOP-HEADER-POLISH-20261130: cart icon + styled search-scope dropdown. Palette only (theme guide 25 Sep 2026). */

/* ---------- cart button: icon + count badge ---------- */
.shop-home .home-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 16px 8px 14px;
  border: 1px solid #BFD8F5;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0D4875;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.shop-home .home-cart::before {
  content: "";
  flex: 0 0 auto;
  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%3Ccircle cx='9' cy='20.5' r='1.2'/%3E%3Ccircle cx='18' cy='20.5' r='1.2'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 2-1.5L22 7H6.2'/%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%3Ccircle cx='9' cy='20.5' r='1.2'/%3E%3Ccircle cx='18' cy='20.5' r='1.2'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 2-1.5L22 7H6.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.shop-home .home-cart span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin: 0;
  padding: 0 7px;
  border-radius: 999px;
  background: #0068DF;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.shop-home .home-cart:hover { background: #F3F8FE; border-color: #0068DF; box-shadow: 0 6px 18px rgba(0, 104, 223, .15); transform: translateY(-1px); }
.shop-home .home-cart:focus-visible { outline: 3px solid #0068DF; outline-offset: 3px; }

/* ---------- search scope dropdown ---------- */
.shop-home .home-search { position: relative; }
.shop-home .home-search select.dts-dd-native {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important; border: 0 !important;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  opacity: 0; pointer-events: none;
}
.shop-home .dts-dd { position: relative; display: flex; flex: 0 0 auto; }
.shop-home .dts-dd-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  margin: 0;
  padding: 10px 12px 10px 16px;
  border: 0;
  border-right: 1px solid #DFE2E4;
  border-radius: 5px 0 0 5px;
  background: #F8F9F9;
  color: #0D4875;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease;
}
.shop-home .dts-dd-btn:hover { background: #F3F8FE; }
.shop-home .dts-dd.open .dts-dd-btn { background: #E6F0FC; }
.shop-home .dts-dd-btn:focus-visible { outline: 3px solid #0068DF; outline-offset: -3px; }
.shop-home .dts-dd-btn svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.shop-home .dts-dd.open .dts-dd-btn svg { transform: rotate(180deg); }

.shop-home .dts-dd-list {
  position: absolute;
  z-index: 70;
  left: 0;
  top: calc(100% + 10px);
  min-width: max(100%, 240px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #DFE2E4;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 20px 48px rgba(13, 72, 117, .20);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .22s;
  outline: none;
}
.shop-home .dts-dd.open .dts-dd-list {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}
.shop-home .dts-dd-list::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -6px;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-left: 1px solid #DFE2E4;
  border-top: 1px solid #DFE2E4;
  transform: rotate(45deg);
}
.shop-home .dts-dd-list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 11px 12px 11px 14px;
  border-radius: 9px;
  color: #3A3A3A;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.shop-home .dts-dd-list li[data-active] { background: #E6F0FC; color: #0D4875; }
.shop-home .dts-dd-list li[aria-selected="true"] { color: #0D4875; }
.shop-home .dts-dd-list li[aria-selected="true"]::after {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: #0068DF;
  -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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 700px) {
  .shop-home .home-cart { min-height: 42px; padding: 6px 12px 6px 10px; font-size: 15px; gap: 8px; }
  .shop-home .home-cart::before { width: 20px; height: 20px; }
  .shop-home .dts-dd-btn { padding: 8px 8px 8px 10px; font-size: 12px; gap: 6px; }
  .shop-home .dts-dd-btn svg { width: 12px; height: 12px; }
  .shop-home .dts-dd-list { min-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-home .dts-dd-list, .shop-home .dts-dd-btn svg, .shop-home .home-cart { transition: none; }
}
@media (forced-colors: active) {
  .shop-home .dts-dd-list { border: 1px solid CanvasText; }
  .shop-home .dts-dd-list li[data-active] { outline: 2px solid Highlight; }
}

/* the Search button's rules (white text, blue fill, padding) also match any <button> inside the form: win them back for the dropdown button */
.shop-home .home-search .dts-dd-btn {
  background: #F8F9F9 !important;
  color: #0D4875 !important;
  padding: 10px 12px 10px 16px !important;
  border-radius: 5px 0 0 5px !important;
  font-weight: 650 !important;
  font-size: 14px !important;
}
.shop-home .home-search .dts-dd-btn:hover { background: #F3F8FE !important; }
.shop-home .home-search .dts-dd.open .dts-dd-btn { background: #E6F0FC !important; }
@media (max-width: 700px) {
  .shop-home .home-search .dts-dd-btn { padding: 8px 8px 8px 10px !important; font-size: 12px !important; }
}
