/* Noblex Fas 3: produktkategorier och produktsidor. */

body.woocommerce ul.products li.product {
  overflow: hidden;
  border-color: #ded7cb;
  border-top: 2px solid var(--noblex-color-bronze);
  border-radius: 0;
  box-shadow: none;
}

body.woocommerce ul.products li.product:hover {
  transform: none;
  border-color: var(--noblex-color-bronze);
  box-shadow: 0 10px 24px rgba(17, 19, 21, 0.07);
}

body.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 10px;
  background: #111;
  object-fit: cover;
}

body.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.8em;
  margin: 4px 0 8px;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
}

body.woocommerce ul.products li.product .price {
  margin: 0 0 12px;
  color: var(--noblex-color-action);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

body.woocommerce ul.products li.product a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--noblex-color-action) !important;
  border-radius: 0;
  background: var(--noblex-color-action) !important;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

body.woocommerce ul.products li.product a.button::after {
  display: none !important;
}

body.woocommerce ul.products li.product a.button:hover,
body.woocommerce ul.products li.product a.button:focus-visible {
  border-color: var(--noblex-color-bronze-strong) !important;
  background: var(--noblex-color-bronze-strong) !important;
  color: #fff !important;
}

body.woocommerce ul.products li.product.outofstock a.button {
  border-color: #aaa49a !important;
  background: transparent !important;
  color: var(--noblex-color-action) !important;
}

.noblex-product-count {
  margin: 0 0 12px;
  color: #655f55;
  font-size: 0.85rem;
  font-weight: 650;
}

/* Produktsidans huvuddel. */
.single-product div.product .product_title {
  margin-bottom: 14px;
  color: var(--noblex-color-action);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.single-product .noblex-purchase-card {
  border-radius: 0;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 19, 21, 0.07);
}

.single-product .noblex-purchase-card > .price {
  margin-bottom: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.single-product .woocommerce-product-details__short-description > h2:first-child {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid #ddd1b8;
  background: #f8f5ed;
  color: var(--noblex-color-action);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.single-product .woocommerce-product-details__short-description > h2:first-child * {
  color: inherit !important;
  font: inherit !important;
}

.single-product .sell-text {
  margin-top: 20px;
  font-size: 0.95rem;
}

.single-product .buyback-badge-wrapper {
  margin-top: 7px;
}

.single-product .product_meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--noblex-color-border-commerce);
  color: #514c45;
  font-size: 0.85rem;
  line-height: 1.65;
}

.single-product .related.products > h2 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
}

.single-product .related.products > h2::before,
.single-product .related.products > h2::after {
  height: 1px;
  background: var(--noblex-color-bronze);
  content: "";
  flex: 1;
}

@media (max-width: 600px) {
  body:is(.tax-product_cat, .post-type-archive-product) .listproducts {
    padding-right: 12px;
    padding-left: 12px;
  }

  body:is(.tax-product_cat, .post-type-archive-product).woocommerce ul.products,
  body.single-product.woocommerce .related ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body:is(.tax-product_cat, .post-type-archive-product).woocommerce ul.products li.product,
  body.single-product.woocommerce .related ul.products li.product {
    width: auto !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 8px 8px 10px;
  }

  body:is(.tax-product_cat, .post-type-archive-product).woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.single-product.woocommerce .related ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.9em;
    margin-top: 2px;
    font-size: 0.74rem;
    line-height: 1.3;
  }

  body:is(.tax-product_cat, .post-type-archive-product).woocommerce ul.products li.product .price,
  body.single-product.woocommerce .related ul.products li.product .price {
    min-height: 2.6em;
    margin-bottom: 8px;
    font-size: 0.74rem;
    line-height: 1.3;
  }

  body:is(.tax-product_cat, .post-type-archive-product).woocommerce ul.products li.product a.button,
  body.single-product.woocommerce .related ul.products li.product a.button {
    min-height: 44px;
    padding: 8px 5px;
    font-size: 0.68rem;
  }

  .single-product div.product .product_title {
    margin: 4px 0 12px;
    font-size: 2rem;
  }

  .single-product .noblex-purchase-card {
    margin: 10px 0 18px;
    padding: 16px;
  }

  .single-product .noblex-purchase-card > .price {
    font-size: 1.75rem;
  }

  .single-product .noblex-purchase-card form.cart {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .single-product .noblex-purchase-promises {
    margin-top: 14px;
    padding-top: 12px;
    font-size: 0.78rem;
  }

  .single-product .woocommerce-product-details__short-description > h2:first-child {
    margin: 14px 0 16px;
    font-size: 0.85rem;
  }

  .single-product .woocommerce-tabs .panel,
  .single-product .woocommerce-Tabs-panel {
    width: 100%;
    max-width: none;
    padding-right: 20px;
    padding-left: 20px;
  }

  body.single-product .woocommerce-tabs #tab-description {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .single-product #tab-description > *,
  .single-product .woocommerce-Tabs-panel--description > * {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .single-product .related.products {
    padding-right: 12px;
    padding-left: 12px;
  }

  .single-product .related.products > h2 {
    gap: 10px;
    margin-bottom: 18px;
    font-size: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 340px) {
  body:is(.tax-product_cat, .post-type-archive-product).woocommerce ul.products,
  body.single-product.woocommerce .related ul.products {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce ul.products li.product {
    transition: none;
  }

  body.single-product div.product .woocommerce-product-gallery__image img.wp-post-image,
  .single-product .noblex-gallery-arrow,
  .noblex-image-dialog__image {
    transition: none;
  }
}

/* Impeccable P2: läsbara administrativa jämförelsepriser. */
body.woocommerce .competitor-price-admin[style*="color:red"] {
  color: #b42318 !important;
}

/* Fas 3.1: certifikatlik produktlayout. */
body.single-product .main-content {
  background: #f4f1eb;
}

body.single-product .single-product-wrap {
  padding-top: 40px;
}

body.single-product div.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  border: 1px solid #d9d0c1;
  background: #fff;
}

/* WooCommerce och märkningspluginet placerar New/Sold Out som ett direkt barn
   till produktens grid. Som vanligt grid-element fyllde märket en hel kolumn.
   Förankra det i stället som en kompakt status ovanpå galleriets övre hörn. */
body.single-product div.product > :is(.new-badge, .sold-out-badge, .onsale) {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 8;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 0 !important;
  background: #171717 !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2 !important;
  text-transform: uppercase;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18) !important;
}

body.single-product div.product .woocommerce-product-gallery {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  padding: 58px 42px 58px 112px;
  background: #efebe3;
}

body.single-product div.product .woocommerce-product-gallery__wrapper {
  margin: 0;
}

body.single-product div.product .woocommerce-product-gallery__image img.wp-post-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d6ccbb;
  background: #111;
  transform: scale(1);
  opacity: 1;
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.single-product .noblex-single-thumbnail,
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  position: absolute;
  top: 58px;
  right: auto;
  left: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 70px;
  max-width: 70px;
  max-height: calc(100% - 116px);
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  list-style: none;
}

.single-product .noblex-single-thumbnail {
  width: 70px;
  padding: 4px;
  border: 2px solid var(--noblex-color-bronze);
  background: #fff;
}

.single-product .noblex-single-thumbnail img,
.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 70px;
  width: 70px;
  margin: 0;
  padding: 4px;
  border: 1px solid #d6ccbb;
  background: #fff;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
  border: 2px solid var(--noblex-color-bronze);
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  top: 18px !important;
  right: 18px !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center;
}

.single-product .noblex-gallery-navigation {
  position: absolute;
  top: 50%;
  right: 52px;
  left: 122px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.single-product .noblex-gallery-arrow {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff !important;
  cursor: pointer;
  opacity: 0.96;
  outline: 0 !important;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}

.single-product .woocommerce-product-gallery__wrapper {
  touch-action: pan-y;
}

.single-product .noblex-gallery-arrow:hover,
.single-product .noblex-gallery-arrow:focus-visible {
  background: transparent;
  opacity: 1;
  transform: scale(1.12);
}

.single-product .noblex-gallery-arrow:focus-visible {
  outline: 2px solid #e3bc54 !important;
  outline-offset: 2px !important;
  color: #e3bc54;
}

.single-product .noblex-gallery-arrow svg {
  width: 34px;
  height: 34px;
  fill: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.single-product .woocommerce-product-gallery.noblex-gallery-transitioning .woocommerce-product-gallery__image.flex-active-slide img.wp-post-image,
.single-product .woocommerce-product-gallery.noblex-gallery-transitioning .woocommerce-product-gallery__image:first-child img.wp-post-image {
  transform: scale(0.992);
  opacity: 0.3;
}

.noblex-image-dialog {
  width: min(860px, calc(100vw - 56px));
  max-width: none;
  max-height: calc(100vh - 56px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fff;
}

.noblex-image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.noblex-image-dialog__stage {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  touch-action: pan-y;
}

.noblex-image-dialog__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 84px);
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition: opacity 170ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.noblex-image-dialog__image.is-changing {
  opacity: 0.22;
  transform: scale(0.992);
}

.noblex-image-dialog__close,
.noblex-image-dialog__arrow {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
  outline: 0 !important;
}

.noblex-image-dialog__close {
  top: 18px;
  right: 18px;
}

.noblex-image-dialog__arrow {
  top: 50%;
  transform: translateY(-50%);
}

.noblex-image-dialog__arrow--previous {
  left: 20px;
}

.noblex-image-dialog__arrow--next {
  right: 20px;
}

.noblex-image-dialog__close:hover,
.noblex-image-dialog__close:focus-visible,
.noblex-image-dialog__arrow:hover,
.noblex-image-dialog__arrow:focus-visible {
  color: #e3bc54 !important;
}

.noblex-image-dialog__close svg,
.noblex-image-dialog__arrow svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.noblex-image-dialog__counter {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 4px 7px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

body.single-product div.product .summary.entry-summary {
  width: 100% !important;
  margin: 0 !important;
  padding: 36px clamp(28px, 4vw, 52px) 18px;
  background: #fff;
}

.single-product .summary.entry-summary > .woocommerce-product-details__short-description {
  margin: 0;
  padding-top: 0;
}

.single-product .summary.entry-summary > p:empty {
  display: none;
}

.single-product .noblex-product-eyebrow {
  margin: 0 0 12px;
  color: var(--noblex-color-bronze-strong);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.single-product .noblex-product-subtitle {
  margin: -4px 0 22px;
  color: #5b554d;
  font-size: 0.82rem;
  line-height: 1.5;
}

.single-product .noblex-purchase-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.single-product .noblex-purchase-card > .price {
  margin: 0;
  padding-bottom: 4px;
  font-family: inherit;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 800;
}

.single-product .noblex-purchase-card .stock {
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--noblex-color-border-commerce);
  border-bottom: 1px solid var(--noblex-color-border-commerce);
  color: var(--noblex-color-success);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single-product .noblex-purchase-card form.cart {
  grid-template-columns: 88px minmax(0, 1fr);
  margin-top: 14px;
  padding-bottom: 12px;
}

.single-product .noblex-purchase-card .quantity .qty {
  border: 1px solid #cfc7bb;
  background: #fff;
}

.single-product .noblex-purchase-card .single_add_to_cart_button {
  border: 1px solid #b88815 !important;
  background: #cca228 !important;
  color: #111 !important;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.single-product .noblex-purchase-card .single_add_to_cart_button:hover,
.single-product .noblex-purchase-card .single_add_to_cart_button:focus-visible {
  border-color: #956b0a !important;
  background: #b98b18 !important;
  color: #111 !important;
}

.single-product .noblex-purchase-promises {
  margin: 10px 0 0;
  padding: 12px;
  border: 0;
  background: #f4f1eb;
  font-size: 0.78rem;
}

.single-product .noblex-purchase-promises li {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 4px;
  align-items: start;
  margin: 0;
  padding: 0 !important;
}

.single-product .noblex-purchase-promises li::before {
  position: static !important;
  inset: auto !important;
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  line-height: 1.4;
}

.single-product .noblex-product-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 16px 0 0;
  border-top: 1px solid #d9d0c1;
  background: #fff;
}

.single-product .noblex-product-facts:empty {
  display: none;
}

.single-product .noblex-product-facts > div {
  min-width: 0;
  padding: 18px 22px;
  border-right: 1px solid #d9d0c1;
}

.single-product .noblex-product-facts > div:last-child {
  border-right: 0;
}

.single-product .noblex-product-facts dt {
  margin-bottom: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.single-product .noblex-product-facts dd {
  margin: 0;
  color: #3f3b35;
  font-size: 0.84rem;
  line-height: 1.4;
}

.single-product .noblex-product-secondary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  border-top: 1px solid #d9d0c1;
  background: #fff;
}

.single-product .noblex-product-secondary__content > h2,
.single-product .noblex-related-full > h2 {
  margin: 0 0 18px;
  color: #17130d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.single-product .noblex-product-secondary__content > p {
  max-width: 72ch;
  margin: 0;
  color: #34302a;
  font-size: 0.98rem;
  line-height: 1.75;
}

.single-product .noblex-product-secondary__details {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #ddd4c5;
}

.single-product .noblex-product-secondary__details h3 {
  margin: 0 0 14px;
  color: #191713;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.single-product .noblex-detail-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.single-product .noblex-detail-list > div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #ece6dc;
}

.single-product .noblex-detail-list dt,
.single-product .noblex-detail-list dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.single-product .noblex-detail-list dt {
  color: #6f675c;
}

.single-product .noblex-detail-list dd {
  color: #1d1a16;
  font-weight: 700;
  text-align: left;
}

.single-product .noblex-product-secondary__details .noblex-detail-prose {
  margin: 0 0 12px;
  color: #403a32;
  font-size: 0.94rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.single-product .noblex-detail-prose + .noblex-detail-list {
  margin-top: 20px;
}

.single-product .noblex-product-secondary__selling {
  padding: 30px;
  border-top: 3px solid #c99d2b;
  background: #171717;
  color: #fff;
  box-shadow: 0 14px 32px rgba(31, 24, 12, 0.13);
}

.single-product .noblex-product-secondary__selling .noblex-product-secondary__eyebrow {
  margin: 0 0 12px;
  color: #d8ad3d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.single-product .noblex-product-secondary__selling h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
}

.single-product .noblex-product-secondary__selling .noblex-product-secondary__selling-text {
  margin: 0 0 22px;
  color: #dedbd4;
  font-size: 0.86rem;
  line-height: 1.6;
}

.single-product .noblex-product-secondary__selling .buyback-badge-wrapper {
  margin: 0;
}

.single-product .noblex-product-secondary__selling .buyback-badge {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #c99d2b;
  background: #c99d2b;
  color: #111 !important;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.single-product .noblex-product-secondary__selling .buyback-badge:hover,
.single-product .noblex-product-secondary__selling .buyback-badge:focus-visible {
  border-color: #e0bc5b;
  background: #e0bc5b;
}

.single-product .noblex-product-meta-muted {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #ece6dc;
  color: #81796e;
  font-size: 0.7rem;
  line-height: 1.5;
}

.single-product .noblex-product-meta-muted a {
  color: #665f55;
}

.single-product .noblex-related-full {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 56px) clamp(42px, 5vw, 64px) !important;
  border-top: 1px solid #d9d0c1;
  background: #f6f3ed;
}

.single-product .noblex-related-full > h2 {
  margin-bottom: 28px;
  text-align: left;
}

.single-product .noblex-related-full ul.products {
  width: 100%;
  margin: 0;
}

body.woocommerce ul.products li.product:not(.outofstock) a.button {
  border-color: #b88815 !important;
  background: #cca228 !important;
  color: #111 !important;
}

body.woocommerce ul.products li.product:not(.outofstock) a.button:hover,
body.woocommerce ul.products li.product:not(.outofstock) a.button:focus-visible {
  border-color: #956b0a !important;
  background: #b98b18 !important;
  color: #111 !important;
}

body.woocommerce ul.products li.product.outofstock .sold-out-badge {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  left: auto;
  width: auto !important;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #c99d2b;
  border-radius: 2px;
  background: rgba(17, 19, 21, 0.94);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

/* Fas 3.2: redaktionell kategorisida för investeringsguld. */
body:is(.tax-product_cat, .post-type-archive-product) .main-content {
  background: #f4f1eb;
}

body:is(.tax-product_cat, .post-type-archive-product) .header,
body:is(.tax-product_cat, .post-type-archive-product) .header .main-header {
  background: #fff !important;
}

body:is(.tax-product_cat, .post-type-archive-product) .header .main-menu > li > a,
body:is(.tax-product_cat, .post-type-archive-product) .header #menu-huvudmeny > li > a,
body:is(.tax-product_cat, .post-type-archive-product) .header #menu-huvudmeny > li > a::before,
body:is(.tax-product_cat, .post-type-archive-product) .header #menu-huvudmeny > li > a::after,
body:is(.tax-product_cat, .post-type-archive-product) .header .menu-woocommerce a,
body:is(.tax-product_cat, .post-type-archive-product) .header .menu-woocommerce i,
body:is(.tax-product_cat, .post-type-archive-product) .header .hamburger-menu {
  color: #111 !important;
}

body:is(.tax-product_cat, .post-type-archive-product) .header .c-hamburger:not(.is-active) span,
body:is(.tax-product_cat, .post-type-archive-product) .header .c-hamburger span::before,
body:is(.tax-product_cat, .post-type-archive-product) .header .c-hamburger span::after {
  background-color: #111 !important;
}

body:is(.tax-product_cat, .post-type-archive-product) #hero-section {
  display: none !important;
}

body:is(.tax-product_cat, .post-type-archive-product) .bread {
  border-bottom: 1px solid #ddd4c5;
  background: #f4f1eb !important;
}

body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-hero-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 76px 28px 34px;
}

@media (min-width: 781px) {
  body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-hero-wrap {
    margin-top: 36px !important;
  }
}

.noblex-category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  column-gap: 64px;
  align-items: end;
}

.noblex-category-hero--basic {
  display: block;
}

.noblex-category-hero--basic .page-title {
  margin-bottom: 0;
}

.noblex-category-eyebrow {
  margin: 0 0 8px;
  color: #765400;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.noblex-category-hero .page-title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.noblex-category-intro {
  max-width: 690px;
  margin: 0;
  color: #4f4a42;
  font-size: 0.96rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.noblex-category-guide {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  padding: 22px 24px;
  border-top: 2px solid #c99d2b;
  background: #151515;
  color: #fff;
}

.noblex-category-guide strong,
.noblex-category-guide span {
  display: block;
}

.noblex-category-guide strong {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 400;
}

.noblex-category-guide span {
  color: #ddd9d0;
  font-size: 0.78rem;
  line-height: 1.5;
}

body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-layout {
  display: block !important;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 52px;
}

body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-products {
  width: 100%;
}

.noblex-category-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px solid #d6c8ac;
  border-bottom: 1px solid #d6c8ac;
}

.noblex-category-toolbar__main,
.noblex-weight-filter,
.noblex-category-toolbar .filtering {
  display: flex;
  align-items: center;
}

.noblex-category-toolbar__main {
  min-width: 0;
  gap: 13px;
}

.noblex-weight-filter {
  gap: 7px;
}

.noblex-weight-filter button,
.noblex-filter-toggle {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #cfc6b7;
  border-radius: 0;
  background: #fff;
  color: #171717;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  touch-action: manipulation;
}

.noblex-weight-filter button:hover,
.noblex-filter-toggle:hover,
.noblex-weight-filter button:focus-visible,
.noblex-filter-toggle:focus-visible {
  border-color: #9b7216;
}

.noblex-weight-filter button:focus-visible,
.noblex-filter-toggle:focus-visible {
  outline: 2px solid #9b7216;
  outline-offset: 2px;
}

.noblex-weight-filter button.is-active {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.noblex-category-toolbar .noblex-product-count {
  flex: 0 0 auto;
  margin: 0;
  color: #716a5f;
  font-size: 0.74rem;
  font-weight: 500;
}

.noblex-filter-toggle::after {
  margin-left: 8px;
  content: "+";
  font-size: 1rem;
  line-height: 0;
}

.noblex-filter-toggle[aria-expanded="true"]::after {
  content: "−";
}

.noblex-category-toolbar .filtering {
  gap: 9px;
  margin: 0;
}

.noblex-category-toolbar .facetwp-facet {
  margin: 0;
}

.noblex-category-toolbar .facetwp-input-wrap,
.noblex-category-toolbar .facetwp-search,
.noblex-category-toolbar select {
  min-height: 44px;
}

.noblex-category-toolbar .facetwp-search {
  width: 185px;
  border: 1px solid #cfc6b7;
  border-radius: 0;
  background-color: #fff;
}

.noblex-category-toolbar select {
  border: 1px solid #cfc6b7;
  border-radius: 0;
  background-color: #fff;
  color: #171717;
}

body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-filter-panel {
  display: none;
  width: 100%;
  margin: -1px 0 18px;
  padding: 20px 22px;
  border: 1px solid #d6c8ac;
  background: #fff;
}

body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-filter-panel.is-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 42px;
}

body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-filter-panel > h2:first-child,
body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-filter-panel > .sidebar-ul {
  display: none;
}

body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-filter-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-filter-panel .facetwp-facet {
  margin: 0;
}

body:is(.tax-product_cat, .post-type-archive-product) ul.products.noblex-phase3-product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px !important;
}

body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 14px 14px 16px;
  border: 1px solid #ded7cb;
  border-top: 1px solid #c99d2b;
  background: #fff;
}

body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product[hidden] {
  display: none !important;
}

.noblex-product-media {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0 0 16px;
  background: #111;
}

body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product .noblex-product-media img {
  display: block;
  margin: 0;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
  transition: none;
}

body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product:hover .noblex-product-media img {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
}

body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product .new-badge.button {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  right: auto;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 7px 9px !important;
  border: 1px solid #c99d2b !important;
  border-radius: 0;
  background: rgba(17, 17, 17, 0.94) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.16);
  color: #fff !important;
  font-size: 0.58rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1 !important;
  pointer-events: none;
  text-transform: uppercase;
}

.noblex-card-meta {
  display: block;
  margin: 0 0 6px;
  color: #765400;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.55em;
  margin: 0 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.28;
  text-wrap: pretty;
}

body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product .price {
  margin-top: auto;
  font-size: 1rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.single-product .noblex-delivery-heading,
.single-product .noblex-delivery-heading * {
  color: var(--noblex-color-action) !important;
}

@media (max-width: 780px) {
  body.single-product .single-product-wrap {
    /* The shared mobile header is fixed (about 107px tall). The parent theme
       leaves 40px before this wrapper, so reserve the remaining clearance
       here and keep the gallery thumbnails in normal reading order below it. */
    padding-top: 92px;
  }

  body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-hero-wrap {
    padding: 92px 18px 24px !important;
  }

  .noblex-category-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .noblex-category-hero .page-title {
    font-size: 2.45rem;
  }

  .noblex-category-guide {
    grid-column: 1;
    grid-row: auto;
    padding: 17px 18px;
  }

  body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-layout {
    padding: 0 12px 38px;
  }

  .noblex-category-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .noblex-category-toolbar__main {
    grid-column: 1 / -1;
    display: block;
  }

  .noblex-weight-filter {
    overflow-x: auto;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
  }

  .noblex-weight-filter button {
    flex: 0 0 auto;
  }

  .noblex-category-toolbar .noblex-product-count {
    margin-top: 5px;
  }

  .noblex-category-toolbar .filtering {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .noblex-category-toolbar .facetwp-search {
    width: 100%;
  }

  .noblex-category-toolbar .facetwp-input-wrap,
  .noblex-category-toolbar .facetwp-facet-sk {
    width: 100%;
  }

  .noblex-filter-toggle {
    grid-column: 1 / -1;
    width: 100%;
  }

  body:is(.tax-product_cat, .post-type-archive-product) .noblex-category-filter-panel.is-open {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  body:is(.tax-product_cat, .post-type-archive-product) ul.products.noblex-phase3-product-grid {
    gap: 12px !important;
  }

  body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product {
    padding: 8px 8px 11px;
  }

  .noblex-product-media {
    margin-bottom: 10px;
  }

  body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product .new-badge.button {
    top: 7px;
    left: 7px;
    padding: 6px 7px !important;
    font-size: 0.49rem !important;
  }

  .noblex-card-meta {
    margin-bottom: 4px;
    font-size: 0.47rem;
    letter-spacing: 0.07em;
  }

  body:is(.tax-product_cat, .post-type-archive-product) ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.3em;
    margin-bottom: 10px;
    font-size: 0.84rem;
    line-height: 1.28;
  }

  body.woocommerce ul.products li.product.outofstock .sold-out-badge {
    top: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    padding: 7px 8px;
    font-size: 0.6rem;
    letter-spacing: 0.055em;
  }

  body.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-right: 12px;
    margin-left: 12px;
  }

  body.single-product div.product > :is(.new-badge, .sold-out-badge, .onsale) {
    top: 12px !important;
    left: 12px !important;
  }

  body.single-product div.product .woocommerce-product-gallery {
    padding: 52px 16px 18px;
  }

  .single-product .woocommerce-product-gallery img.zoomImg {
    display: none !important;
  }

  .single-product .noblex-single-thumbnail,
  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    top: 10px;
    right: 58px;
    left: 16px;
    display: flex;
    flex-direction: row;
    width: auto;
    max-width: calc(100% - 74px);
    max-height: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .single-product .noblex-single-thumbnail {
    right: auto;
    width: 42px;
    padding: 2px;
  }

  .single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex-basis: 42px;
    width: 42px;
    margin: 0;
    padding: 2px;
  }

  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    top: 10px !important;
    right: 16px !important;
  }

  .single-product .noblex-gallery-navigation {
    top: calc(50% + 17px);
    right: 24px;
    left: 24px;
  }

  .single-product .noblex-gallery-arrow {
    width: 44px;
    height: 44px;
  }

  .noblex-image-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .noblex-image-dialog__stage {
    padding: 8px;
  }

  .noblex-image-dialog__image {
    max-height: calc(100vh - 40px);
  }

  .noblex-image-dialog__arrow--previous {
    left: 8px;
  }

  .noblex-image-dialog__arrow--next {
    right: 8px;
  }

  body.single-product div.product .summary.entry-summary {
    padding: 26px 20px;
  }

  .single-product .noblex-product-eyebrow {
    font-size: 0.64rem;
  }

  .single-product .noblex-product-subtitle {
    margin-bottom: 20px;
  }

  .single-product .noblex-purchase-card form.cart {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .single-product .noblex-purchase-card .single_add_to_cart_button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.015em;
  }

  .single-product .noblex-product-facts {
    margin-top: 0;
  }

  .single-product .noblex-product-facts > div {
    padding: 13px 10px;
  }

  .single-product .noblex-product-facts dt {
    font-size: 0.6rem;
  }

  .single-product .noblex-product-facts dd {
    font-size: 0.7rem;
  }

  .single-product .noblex-product-secondary {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 34px 20px;
  }

  .single-product .noblex-product-secondary__selling {
    padding: 24px 20px;
  }

  .single-product .noblex-detail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-product .noblex-related-full {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .single-product .noblex-related-full > h2 {
    margin-bottom: 20px;
  }
}
