/* Färgval på produktkort. Antal, bilder och länkar kommer från butiksmotorn. */
.shop-stage [data-ms-shop-root][data-ms-shell-contract][data-ms-variant-kind][data-ms-layout][data-ms-route] .msf-v1-product-card .msf-v1-product-meta:has(.msf-v1-product-swatches) { display: flex; margin: 0 0 5px; }
.shop-stage [data-ms-shop-root][data-ms-shell-contract][data-ms-variant-kind][data-ms-layout][data-ms-route] .msf-v1-product-meta:has(.msf-v1-product-swatches) .msf-v1-product-category { display: none; }
:is([data-ms-shop-root], #threadProducts) .msf-v1-product-swatches { gap: 4px; color: var(--muted); font-size: 14px; }
:is([data-ms-shop-root], #threadProducts) .msf-v1-product-swatches .msf-v1-variant-swatch { inline-size: 14px; block-size: 14px; }
:is([data-ms-shop-root], #threadProducts) .msf-v1-card-variant:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
#threadProducts { display: block; }
#threadProducts > .msf-v1-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
#threadProducts .msf-v1-product-card { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: none; color: var(--ink); }
#threadProducts .msf-v1-product-media { display: block; position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
#threadProducts .msf-v1-product-media .msf-v1-image { display: block; width: 100%; height: 100%; max-height: none; padding: 8%; object-fit: contain; border-radius: 0; background: #fff; }
#threadProducts .msf-v1-product-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 2px 18px 18px; min-width: 0; }
#threadProducts .msf-v1-product-meta { margin: 0; }
#threadProducts .msf-v1-product-meta:not(:has(.msf-v1-product-swatches)), #threadProducts .msf-v1-product-category, #threadProducts .msf-v1-product-summary, #threadProducts .msf-v1-stock-status, #threadProducts .msf-v1-card-quantity { display: none; }
#threadProducts .msf-v1-product-title-link { color: inherit; text-decoration: none; }
#threadProducts .msf-v1-product-title { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.45; font-weight: 600; }
#threadProducts .msf-v1-price { margin: auto 0 0; padding-top: 10px; font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--ink); }
#threadProducts .msf-v1-product-actions { display: flex; justify-content: flex-start; margin-top: 3px; }
#threadProducts .msf-v1-product-actions .msf-v1-button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); font: 600 13px var(--font-body); text-decoration: none; cursor: pointer; }
#threadProducts .msf-v1-product-actions .msf-v1-button:hover { background: var(--ink); color: #fff; }
#threadProducts .msf-v1-product-actions .msf-v1-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#threadProducts > [hidden] { display: none; }
@media (max-width: 980px) {
  #threadProducts > .msf-v1-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  #threadProducts > .msf-v1-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #threadProducts .msf-v1-product-card-body { padding: 2px 12px 12px; }
  #threadProducts .msf-v1-product-title { font-size: 14.5px; }
  #threadProducts .msf-v1-price { font-size: 17px; }
  :is([data-ms-shop-root], #threadProducts) .msf-v1-product-swatches { gap: 3px; }
}
