/* CLXON24 conversion UX layer – scoped, no checkout/configurator overrides */

.shop-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shop-card:hover {
  transform: translateY(-3px);
}
.shop-card-perks {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin: .2rem 0 .72rem;
}
.shop-card-perks span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .22rem .48rem;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  background: #f7f9fb;
  color: #667085;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.shop-card-perks span::before {
  content: "✓";
  margin-right: .28rem;
  color: #008fd8;
  font-size: .62rem;
  font-weight: 900;
}
.shop-card-footer {
  align-items: center;
  gap: .55rem;
}
.shop-card-footer > strong {
  white-space: nowrap;
}
.shop-card-cta {
  border-radius: 11px !important;
  font-weight: 760;
}

.shop-suggest__hit--ux {
  display: grid !important;
  grid-template-columns: 56px minmax(0,1fr) auto;
  align-items: center;
  gap: .72rem;
  padding: .58rem !important;
}
.shop-suggest__media {
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #e5e9ef;
  border-radius: 11px;
  background: #f7f9fb;
}
.shop-suggest__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-suggest__media--empty {
  background: linear-gradient(135deg, #f4f6f8, #eceff3);
}
.shop-suggest__copy {
  min-width: 0;
}
.shop-suggest__copy strong {
  display: block;
  overflow: hidden;
  color: #171b22;
  font-size: .82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-suggest__copy small {
  display: block;
  margin-top: .18rem;
  color: #0086c5;
  font-size: .72rem;
  font-weight: 800;
}
.shop-suggest__arrow {
  color: #98a2af;
  font-size: 1rem;
}
.shop-suggest__hit--category {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.shop-suggest__empty {
  display: grid;
  gap: .45rem;
  padding: .75rem;
  color: #687386;
  font-size: .78rem;
}
.shop-suggest__empty strong {
  color: #20252d;
}
.shop-suggest__empty a {
  color: #007fb9;
  font-weight: 800;
  text-decoration: none;
}

.shop-filter-trigger,
.shop-filter-sheet-head,
.shop-filter-actions,
.shop-filter-apply,
.shop-filter-reset,
.shop-filter-backdrop,
.shop-search-wrap--mobile-top {
  display: none;
}

@media (max-width: 720px) {
  body.is-shop-filter-open {
    overflow: hidden;
    touch-action: none;
  }

  .page-shop .shop-toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 410;
    display: grid;
    gap: .75rem;
    max-height: min(78dvh, 680px);
    margin: 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border: 1px solid #e3e7ed;
    border-radius: 22px 22px 0 0;
    background: rgba(255,255,255,.985);
    box-shadow: 0 -24px 70px rgba(15,23,42,.18);
    transform: translateY(108%);
    transition: transform .26s cubic-bezier(.22,.61,.36,1);
  }

  .page-shop .shop-toolbar.is-open {
    transform: translateY(0);
  }

  .page-shop .shop-toolbar .shop-search-wrap {
    display: none;
  }

  .page-shop .shop-toolbar select {
    width: 100%;
    min-height: 52px;
    border-radius: 13px;
    background: #fff;
  }

  .shop-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -.15rem 0 .15rem;
  }

  .shop-filter-sheet-head > div {
    display: grid;
    gap: .08rem;
  }

  .shop-filter-sheet-head small {
    color: #8a94a3;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  .shop-filter-sheet-head strong {
    color: #111827;
    font-size: 1.12rem;
    letter-spacing: -.03em;
  }

  .shop-filter-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e6eb;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 1.6rem;
    line-height: 1;
  }

  .shop-filter-actions {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: .55rem;
  }

  .shop-filter-apply,
  .shop-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 13px;
    font: inherit;
    font-weight: 800;
  }

  .shop-filter-apply {
    border: 0;
    background: #0c0e12;
    color: #fff;
  }

  .shop-filter-reset {
    border: 1px solid #dfe4ea;
    background: #fff;
    color: #3b4450;
  }

  .shop-filter-reset:active,
  .shop-filter-apply:active {
    transform: translateY(1px);
  }

  .shop-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 405;
    display: block;
    border: 0;
    background: rgba(7,10,14,.5);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(5px);
    transition: opacity .2s ease, visibility .2s ease;
  }

  .shop-filter-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .shop-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 48px;
    margin: .55rem 0 .35rem;
    border: 1px solid #dfe4ea;
    border-radius: 13px;
    background: #fff;
    color: #161b22;
    font: inherit;
    font-size: .88rem;
    font-weight: 780;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
  }

  .shop-filter-trigger__icon {
    font-size: .9rem;
    transform: rotate(90deg);
  }

  .shop-filter-trigger strong {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #00a8ff;
    color: #04131a;
    font-size: .68rem;
  }

  .shop-search-wrap--mobile-top {
    display: block;
    position: relative;
    margin-top: .25rem;
  }

  .shop-search-wrap--mobile-top input {
    width: 100%;
    min-height: 49px;
    padding: 0 .9rem 0 2.6rem;
    border: 1px solid #dfe4ea;
    border-radius: 13px;
    background: #fff;
    font-size: 16px;
  }

  .shop-search-wrap--mobile-top .shop-search-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7d8793;
  }

  .shop-suggest--mobile-ux {
    position: absolute;
    top: calc(100% + .42rem);
    left: 0;
    right: 0;
    z-index: 430;
    max-height: min(58vh, 480px);
    overflow-y: auto;
    border: 1px solid #e2e7ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15,23,42,.18);
  }

  .shop-suggest--mobile-ux[hidden] {
    display: none;
  }

  .shop-suggest--mobile-ux .shop-suggest__hit--ux {
    grid-template-columns: 52px minmax(0,1fr) auto;
    min-height: 64px;
  }

  .shop-suggest--mobile-ux .shop-suggest__media {
    width: 52px;
    height: 52px;
  }


  .shop-catnav {
    display: flex;
    gap: .45rem;
    margin-inline: calc(-1 * var(--pad, 16px));
    padding-inline: var(--pad, 16px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .shop-catnav::-webkit-scrollbar { display: none; }

  .shop-catnav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: .45rem .72rem;
    border: 1px solid #e1e5ea;
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
  }

  .shop-card {
    border-radius: 16px;
  }

  .shop-card:hover {
    transform: none;
  }

  .shop-card-perks {
    gap: .28rem;
    margin-bottom: .55rem;
  }

  .shop-card-perks span {
    min-height: 21px;
    padding: .18rem .38rem;
    font-size: .58rem;
  }

  .shop-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-card-footer > strong {
    font-size: .92rem;
  }

  .shop-card-cta {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .product-buy [data-add-cart].ux-sticky-atc {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 36;
    min-height: 50px;
    border: 1px solid rgba(0, 168, 255, .28);
    border-radius: 13px;
    background: linear-gradient(135deg, #11161d 0%, #080b0f 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(8, 11, 15, .20), 0 0 0 1px rgba(255,255,255,.03) inset;
    font-weight: 820;
    letter-spacing: -.015em;
  }

  .product-buy [data-add-cart].ux-sticky-atc:hover,
  .product-buy [data-add-cart].ux-sticky-atc:focus-visible {
    background: linear-gradient(135deg, #08b4ff 0%, #008fd8 100%);
    color: #06141b;
    box-shadow: 0 14px 34px rgba(0,168,255,.25);
  }

  .product-buy.has-ux-sticky-atc {
    isolation: isolate;
  }

  .mini-cart.is-open {
    box-shadow: -26px 0 80px rgba(7,10,14,.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card,
  .page-shop .shop-toolbar,
  .shop-filter-backdrop {
    transition: none !important;
  }
}
