.shop-intro { margin: 0 0 1.5rem; max-width: 58rem; }
.shop-intro h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.12; letter-spacing: -.04em; }
.shop-intro p, .shop-spec dd, .shop-empty p { color: #53596d; font-size: 1.07rem; line-height: 1.65; }
.shop-intro h1 + p, .shop-empty p { margin-top: .65rem; }
.shop-category-path ol, .shop-category-path li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; }
.shop-category-overview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem 1rem; }
.shop-category-title, .shop-category-description { overflow-wrap: anywhere; }
.shop-category-description { grid-column: 1 / -1; margin: 0; }
.shop-category-description-full { margin-block: 1.5rem; max-width: 70ch; overflow-wrap: anywhere; }
.shop-category-description-full h2 { font-size: 1.2rem; }
.shop-category-description-full p { margin-top: .5rem; line-height: 1.65; }
.shop-category-cover {
  grid-column: 2; grid-row: 1; width: clamp(4rem, 14vw, 8rem); height: clamp(4rem, 14vw, 8rem);
  border-radius: .75rem; background: #fff; object-fit: contain;
}
@media (min-width: 48rem) {
  .shop-category-overview:has(.shop-category-description) .shop-category-cover { grid-row: 1 / span 2; }
  .shop-category-description { grid-column: 1; align-self: start; }
}
.shop-category-path ol { margin: .5rem 0 1rem; padding: 0; list-style: none; }
.shop-category-path li { min-width: 0; max-width: 100%; color: #655c70; }
.shop-category-path a, .shop-category-path strong { min-width: 0; max-width: 100%; padding-block: .25rem; overflow-wrap: anywhere; }
.shop-category-path a { color: #5533a7; text-decoration: underline; text-underline-offset: .15em; }
.shop-categories { margin: 0 0 2rem; }
.shop-section-title { margin: 0 0 .75rem; font-size: clamp(1.25rem, 2.5vw, 1.65rem); line-height: 1.2; }
.shop-category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .75rem;
  margin: 0; padding: 0; list-style: none;
}
.shop-category-grid li { min-width: 0; }
.shop-category-tile {
  display: flex; align-items: center; gap: .9rem; min-height: 6rem; height: 100%; padding: .8rem 1rem;
  box-sizing: border-box; border: 1px solid var(--line); border-radius: 1rem;
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.shop-category-tile:hover, .shop-category-tile:focus-visible { border-color: #a48acb; background: #fcfaff; }
.shop-category-tile:focus-visible, .shop-category-path :focus-visible { outline: 2px solid #6340cf; outline-offset: 3px; }
.shop-category-thumb {
  flex: none; width: clamp(3.75rem, 13vw, 5rem); height: clamp(3.75rem, 13vw, 5rem);
  padding: .3rem; box-sizing: border-box; border-radius: .65rem; background: #f5f2fa; object-fit: contain;
}
.shop-category-copy { flex: 1; min-width: 0; display: grid; gap: .3rem; overflow-wrap: anywhere; }
.shop-category-copy strong { font-size: 1.12rem; line-height: 1.25; }
.shop-category-summary { color: #464153; line-height: 1.4; }
.shop-category-count { color: #635c70; font-size: .92rem; line-height: 1.35; }
.shop-category-arrow { flex: none; color: #6340cf; font-size: 1.3rem; }
.shop-search { display: flex; align-items: stretch; max-width: 46rem; margin-bottom: 1.5rem; padding: .35rem; border: 1px solid #cac9d6; border-radius: 12px; background: #fff; }
.shop-search input { flex: 1; min-width: 0; border: 0; border-radius: 8px; padding: .55rem .75rem; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.shop-search button { min-height: 44px; padding: .5rem 1.2rem; border: 0; border-radius: 8px; background: #6340cf; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.shop-paging { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 1.5rem; }
.shop-paging a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .95rem; color: #393550; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.shop-paging { justify-content: center; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: .9rem; }
.shop-detail, .shop-empty { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-wrap: anywhere; }
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .375rem;
  min-width: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow-wrap: anywhere;
}
.shop-card:focus-within, .shop-card:hover { border-color: #b49bdc; }
:is(.shop-card, .storefront-product, .shop-detail):has(> .shop-product-icon) {
  position: relative; --product-icon-size: 56px; --product-icon-gap: .5rem;
}
.shop-product-icon {
  position: absolute; inset-block-start: .75rem; inset-inline-end: .75rem;
  z-index: 1; width: var(--product-icon-size); height: var(--product-icon-size); object-fit: contain;
}
.shop-card > .shop-product-icon + *,
.storefront-product:has(> .shop-product-icon) .storefront-product-link > :first-child:not(.storefront-product-info),
.storefront-product:has(> .shop-product-icon) .storefront-product-info:first-child h3,
.shop-detail > .shop-product-icon + .shop-intro {
  min-block-size: var(--product-icon-size);
  margin-inline-end: calc(var(--product-icon-size) + var(--product-icon-gap));
}
.shop-card-media {
  display: grid; place-items: center;
  padding: .25rem; margin: -.4rem -.4rem 0;
  background: #fff; border-bottom: 1px solid #f0edf5;
}
.shop-card-media .shop-card-preview { display: block; width: 100%; height: clamp(15rem, 23vw, 17rem); border: 0; object-fit: contain; }
.drawing-sheet {
  display: grid; place-items: center;
  margin: -.4rem -.4rem 0;
  border: 1px solid #d9dfec; border-radius: .6rem;
  background-color: #f4f7fc;
  background-image: linear-gradient(to right, #7187ad15 1px, transparent 1px),
                    linear-gradient(to bottom, #7187ad15 1px, transparent 1px);
  background-size: 12px 12px;
}
.drawing-key { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .65rem; min-width: 0; }
.drawing-label { color: #344765; font-size: .9rem; line-height: 1.3; font-weight: 700; }
.drawing-formats { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.drawing-formats li {
  display: inline-flex; align-items: center; gap: .2rem; padding: .15rem .3rem;
  border: 1px solid #d2dbe8; border-radius: .25rem; background: #fff;
  color: #364a67; font-size: .75rem; line-height: 1.15; font-weight: 700;
}
/* XIOT file symbols: drawing xiot-2f11ea7a1eb512b5, PDF xiot-6dff663bd3e376bf,
   image xiot-78bdd93ed3092106. The visible extension is also the accessible label. */
.drawing-formats li::before {
  content: ""; width: 1rem; height: 1rem; background: currentColor;
  mask: var(--format-icon) center / contain no-repeat;
}
.drawing-format-dwg { --format-icon: url("file-icons/dwg.c6ab7bb19b69.svg"); }
.drawing-format-pdf { --format-icon: url("file-icons/pdf.c52fefe87bde.svg"); }
.drawing-format-png { --format-icon: url("file-icons/png.c8a06ff25f38.svg"); }
.drawing-sheet img.drawing-thumb {
  display: block; width: auto; max-width: 100%; height: clamp(15rem, 23vw, 17rem);
  border: 0; object-fit: contain; mix-blend-mode: multiply;
}
/* The top two rows of this thumbnail contain ink from the sheet heading. */
:is(.drawing-sheet, .shop-detail-preview) img[src*="/chint-nxb-125-1p/2/"] { clip-path: inset(1% 0 0); }
.shop-card h2 { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.3; }
.shop-card h2 a { color: inherit; text-decoration: none; }
.shop-card p { margin: 0; font-size: .96rem; line-height: 1.4; color: #53596d; }
.shop-empty h2 { font-size: 1.5rem; line-height: 1.3; }
.shop-detail .shop-type { font-size: .95rem; font-weight: 700; color: #5c428e; margin-bottom: .35rem; }
.shop-card h2 a:hover, .shop-back, .shop-orders-link, .shop-empty a { color: #5533a7; text-decoration: underline; text-underline-offset: .2em; }
.shop-card-foot, .shop-facts { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.shop-card-foot { margin-top: auto; padding-top: .3rem; }
.shop-card-foot span { color: #655c70; font-size: .86rem; }
.shop-card-foot strong { color: #4d288a; font-size: 1.12rem; white-space: nowrap; }
.shop-empty { max-width: 56rem; }
.shop-orders-link, .shop-back, .shop-empty a { display: inline-block; padding-block: .9rem; }
.shop-detail { max-width: 64rem; }
.shop-facts { align-items: center; background: #f6f3fb; border-radius: 12px; padding: 1.1rem; margin: 1rem 0; }
.shop-facts strong { font-size: 1.55rem; }
.shop-facts p, .shop-seller { color: #555569; }
.shop-seller { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.shop-service-facts { display: grid; gap: .15rem; margin: .25rem 0; font-size: .95rem; line-height: 1.4; }
.shop-service-facts dt { font-weight: 700; }
.shop-service-facts dd { margin: 0 0 .45rem; }
.shop-card > .shop-action { align-self: flex-start; }
.shop-service-entry { display: grid; gap: .35rem; }
.shop-service-entry p { margin: 0; font-size: .9rem; }
.shop-spec dt { margin-top: 1.2rem; font-size: 1.2rem; font-weight: 700; }
.shop-spec dd { margin: .25rem 0 0; }
@media (max-width: 520px) {
  .shop-search button { padding-inline: .65rem; }
  .shop-detail:has(.shop-detail-preview) { padding: clamp(.8rem, 3vw, 1.2rem); }
  .shop-detail:has(.shop-detail-preview) .shop-facts { margin-top: .5rem; padding: .75rem; gap: .5rem; }
  .shop-facts { flex-direction: column; align-items: flex-start; }
  .shop-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; }
}

.shop-search select { max-width: 42%; min-height: 44px; background: white; color: var(--ink); border: 0; font: inherit; }
.shop-order-form { display: grid; gap: .75rem; margin-top: 1.5rem; }
.shop-order-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .75rem; border: 1px solid #b6b1c6; border-radius: 10px; }
.shop-consent { display: flex; align-items: baseline; gap: .5rem; }
.shop-consent a { text-decoration: underline; }
.shop-action { display: inline-flex; justify-content: center; align-items: center; justify-self: start; min-height: 44px; padding: .5rem 1rem; border: 0; border-radius: 10px; background: #6340cf; color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.shop-spec + .shop-action, .shop-result + .shop-action { margin-top: 1rem; }

.shop-detail .shop-intro:has(.shop-detail-preview) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: clamp(1rem, 3vw, 2rem); align-content: start; }
.shop-detail-preview { grid-column: 2; grid-row: 1 / 4; align-self: start; display: grid; justify-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 10px; padding: .6rem; color: #5533a7; text-align: center; font-size: .9rem; text-decoration: underline; text-underline-offset: .16em; }
.shop-detail-preview img { width: auto; max-width: 100%; height: 13rem; object-fit: contain; }
.shop-overview {
  display: flex; align-items: center; gap: clamp(.8rem, 3vw, 1.4rem); width: fit-content; max-width: 100%;
  margin: 1rem 0; padding: .6rem 1rem .6rem .6rem; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: .75rem; background: var(--surface);
  color: var(--ink); text-decoration: none;
}
.shop-overview img {
  width: clamp(5rem, 22vw, 8rem); height: clamp(6rem, 25vw, 9rem); flex: none;
  object-fit: contain; background: #f5f6fa; border-radius: .4rem;
}
.shop-overview > span { display: grid; gap: .3rem; min-width: 0; }
.shop-overview small { color: #565162; font-size: .9rem; }
.shop-overview-open { text-decoration: underline; text-underline-offset: .15em; color: #5533a7; }
.shop-overview:hover, .shop-overview:focus-visible { border-color: #9c83c5; }
.shop-overview:focus-visible { outline: 2px solid #6340cf; outline-offset: 3px; }
.shop-sheet { display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; color: #242135; background: #f3f4f8; font: 1rem/1.4 system-ui, sans-serif; }
.shop-sheet header { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; padding: .25rem 1rem; border-bottom: 1px solid #dddbe5; background: white; }
.shop-sheet h1 { flex: 1 1 12rem; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.shop-sheet header :is(label, a) { min-height: 44px; display: inline-flex; gap: .35rem; align-items: center; }
.shop-sheet a { color: #5533a7; text-underline-offset: .15em; }
.shop-sheet label { cursor: pointer; }
.shop-sheet input { accent-color: #6340cf; width: 1.15rem; height: 1.15rem; }
.shop-sheet main { flex: 1; min-height: 0; overflow: auto; }
.shop-sheet main img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin-inline: auto; }
.shop-sheet:has(#sheet-scale:checked) main img { max-width: none; max-height: none; }
@media (max-width: 720px) {
  .shop-detail .shop-intro:has(.shop-detail-preview) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: .75rem; margin-bottom: .5rem; }
  .shop-detail .shop-intro :is(.shop-type, .drawing-key, h1) { grid-column: 1 / -1; }
  .shop-detail-preview { grid-column: 1; grid-row: 3; align-self: center; gap: .15rem; margin-top: .4rem; padding: .25rem; }
  .shop-detail-preview img { height: clamp(5.5rem, 30vw, 11rem); }
  .shop-intro:has(.shop-detail-preview) h1 + p { align-self: center; font-size: 1rem; line-height: 1.45; }
}

.shop-product-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: .4rem; }
.shop-product-actions form { margin: 0; }
.shop-product-actions :is(.shop-quick-buy, .shop-add-to-cart, .shop-in-cart) {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .4rem .8rem; border: 1px solid #c6b5e4; border-radius: .65rem;
  background: #fff; color: #51328b; font: inherit; font-size: .94rem; font-weight: 650;
  cursor: pointer; text-decoration: none;
}
.shop-product-actions .shop-quick-buy { background: #6338c4; color: #fff; border-color: #6338c4; }
.shop-product-actions .shop-quick-buy:hover { background: #512ba7; }
.shop-product-actions .shop-add-to-cart:hover { background: #f7f2ff; }
.shop-product-actions :is(a, button):focus-visible { outline: 3px solid #8262ce; outline-offset: 2px; }
.shop-product-actions [hidden], .shop-cart-notice[hidden] { display: none; }
.shop-product-actions .shop-in-cart { background: #edf7f0; color: #265b3b; border-color: #a4c4ad; }
.shop-product-actions .shop-in-cart:hover { background: #deefe3; text-decoration: underline; text-underline-offset: .18em; }
.shop-product-actions [aria-disabled="true"] { position: relative; cursor: progress; background: #f8f5fd; }
.shop-product-actions [aria-disabled="true"]::after {
  content: ""; position: absolute; inset: auto 16% 3px; height: 2px;
  border-radius: 2px; background: currentColor; animation: shop-cart-wait .8s ease-in-out infinite alternate;
}
@keyframes shop-cart-wait { from { transform: scaleX(.35); } to { transform: scaleX(1); } }

.shop-cart-notice {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .3rem .85rem;
  position: fixed; z-index: 40; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  width: max-content; max-width: min(38rem, calc(100% - 2rem)); padding: .4rem .4rem .4rem 1rem;
  border: 1px solid #b9d1c0; border-radius: .9rem; background: #fff; color: #204c30;
  box-shadow: 0 5px 24px #25203228; font-size: .96rem; font-weight: 600; line-height: 1.45;
}
.shop-cart-notice[data-edge="top"] { top: max(1rem, env(safe-area-inset-top)); bottom: auto; }
.shop-cart-notice[data-error="true"] { border-color: #e1bbc0; color: #79303c; }
.shop-cart-notice [data-cart-message] { overflow-wrap: anywhere; }
.shop-cart-notice a, .shop-cart-notice button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.shop-cart-notice a { color: #55338f; text-decoration: underline; text-underline-offset: .2em; }
.shop-cart-notice button { min-width: 44px; border: 0; border-radius: .5rem; background: transparent; color: #5c5467; font-size: 1.45rem; }
.shop-cart-notice button:hover { background: #f5f1f8; }
.shop-cart-flight {
  position: fixed; top: 0; left: 0; z-index: 41; pointer-events: none;
  width: 2rem; height: 2rem; padding: .2rem; overflow: hidden; border: 2px solid #fff;
  border-radius: 50%; background: #7145bc; box-shadow: 0 2px 8px #3b21594d;
}
.shop-cart-flight img { width: 100%; height: 100%; border-radius: 50%; background: #fff; object-fit: contain; }
@media (max-width: 520px) {
  .shop-cart-notice { grid-template-columns: minmax(0, 1fr) auto; column-gap: .5rem; row-gap: 0; padding-block: .65rem .2rem; }
  .shop-cart-notice a { grid-column: 1; justify-self: start; }
  .shop-cart-notice button { grid-column: 2; grid-row: 1 / 3; align-self: start; }
}

.shop-payment-status { margin-block: 1rem; padding: 1rem; background: #f6f3fb; border-radius: 12px; }
.shop-payment-status p { margin: 0 0 .75rem; }
.shop-continue-payment { margin-block: 1rem; }
.shop-continue-payment summary { cursor: pointer; font-weight: 600; color: #5533a7; }
.shop-continue-payment[open] summary { margin-bottom: .75rem; }
.shop-payment-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.shop-tools { position: relative; max-width: 62rem; margin-bottom: 1.5rem; }
.shop-tools > .shop-search { margin: 0 10.25rem 0 0; max-width: none; }
.shop-filter-disclosure > summary {
  position: absolute; inset: 0 0 auto auto; display: flex; align-items: center; justify-content: center;
  gap: .5rem; min-width: 9.5rem; min-height: 3.5rem; box-sizing: border-box;
  padding: .5rem .85rem; border: 1px solid #cac9d6; border-radius: 12px;
  background: var(--surface); color: var(--ink); font-weight: 650; cursor: pointer; list-style: none;
}
.shop-filter-disclosure > summary::-webkit-details-marker { display: none; }
.shop-filter-disclosure > summary::after {
  content: ''; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1rem) rotate(45deg);
}
.shop-filter-disclosure[open] > summary::after { transform: translateY(.15rem) rotate(225deg); }
.shop-filter-disclosure[open] > summary { background: #f3edff; border-color: #aa93e1; }
.shop-filter-counter { border-radius: 1rem; padding: 0 .45rem; color: white; background: #6340cf; font-size: .85rem; }
.shop-filter-panel {
  margin-top: .65rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface);
}
.shop-filter-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.shop-filter-groups fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.shop-filter-groups legend { padding: 0; font-weight: 700; overflow-wrap: anywhere; }
.shop-filter-groups select { max-width: 100%; margin-top: .45rem; min-height: 44px; padding: .25rem .55rem; background: white; border: 1px solid var(--line); border-radius: .55rem; color: var(--ink); font: inherit; }
.shop-filter-options { --filter-row-height: 44px; max-height: calc(6 * var(--filter-row-height)); overflow: auto; margin-block: .2rem; }
@media (min-width: 48rem) and (hover: hover) and (pointer: fine) {
  .shop-filter-options { --filter-row-height: 1.75rem; }
}
.shop-filter-options label { min-height: var(--filter-row-height); display: flex; align-items: center; gap: .55rem; cursor: pointer; overflow-wrap: anywhere; }
.shop-filter-options input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .2rem; accent-color: #6340cf; }
.shop-filter-options label:has(input:disabled) { color: #777383; }
.shop-filter-options small { flex: none; white-space: nowrap; margin-inline-start: auto; padding-inline: .5rem; color: #615d70; }
.shop-filter-actions, .shop-applied-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .85rem; }
.shop-filter-actions { margin-top: 1rem; }
.shop-filter-actions button { min-height: 44px; padding: .5rem 1.2rem; border: 0; border-radius: .65rem; background: #6340cf; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.shop-applied-filters { margin-top: .65rem; font-size: .94rem; }
.shop-applied-filters span { overflow-wrap: anywhere; padding: .25rem .6rem; border-radius: .6rem; background: #eee8fa; }
.shop-filter-actions a, .shop-applied-filters a { min-height: 44px; display: inline-flex; align-items: center; color: #5533a7; }
.shop-filter-disclosure :focus-visible { outline: 2px solid #6340cf; outline-offset: 2px; }
@media (max-width: 34rem) {
  .shop-tools > .shop-search { margin: 0; }
  .shop-filter-disclosure > summary { position: static; min-width: 0; width: max-content; min-height: 44px; margin-top: .5rem; }
  .shop-filter-groups { grid-template-columns: 1fr; }
}
