/* ============================================================
   product-card.css — GENERATED, do not edit by hand.
   The category product card (catalog/_partials/miniatures/product.tpl)
   for pages other than listings: product page "Liknande produkter" and
   the home page blocks. Copied from catalog-redesign.css and scoped to
   .eg-cards by themes/egettryckse/_dev/build-product-card-css.js —
   change catalog-redesign.css, then re-run that script.
   ============================================================ */

.eg-cards .product-miniature {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0;
  transition: box-shadow .15s ease;
}

.eg-cards .product-miniature:hover {
  box-shadow: 0 10px 24px -14px rgba(26, 18, 10, .22);
}

.eg-cards .thumbnail-container {
  aspect-ratio: 1 / 1;
  padding: 0;
  background: var(--eg-canvas, #f9f8f6);
}

.eg-cards .thumbnail-container .thumbnail {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.eg-cards .thumbnail-container .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.eg-cards .fmm_sticker_base_span {
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  white-space: nowrap;
  z-index: 3;
}

.eg-cards .product-manufacturer {
  margin: 2px 0 4px;
}

.eg-cards .product-manufacturer span a {
  background: #f9f2e8;
  color: var(--eg-ink, #1a1a1a);
  font-size: 1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
}

.eg-cards .product-flags {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--eg-yellow, #f5a623);
  color: var(--eg-ink, #1a1a1a);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
}

.eg-cards .product-groups {
  padding: 12px 14px 14px;
}

.eg-cards .product-title a {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--eg-ink, #1a1a1a);
  line-height: 1.35;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eg-cards .product-title a:hover {
  text-decoration: underline;
}

.eg-cards .thumbnail-container .thumbnail::after {
  content: "Designa nu";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 0;
  border-radius: 99px;
  background: var(--eg-yellow, #f5a623);
  color: var(--eg-ink, #1a1a1a);
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
  z-index: 4;
}

.eg-cards .product-miniature:hover .thumbnail-container .thumbnail::after {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .eg-cards .thumbnail-container .thumbnail::after {
    display: none;
  }

}

.eg-cards .product-price-and-shipping .price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--eg-ink, #1a1a1a);
}

.eg-cards .product-price-and-shipping .regular-price {
  font-size: 1.1rem;
  color: var(--eg-muted, #6b6a63);
}

.eg-cards .product-comments {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.eg-cards .product-comments .star_content {
  display: flex;
  gap: 1px;
}

.eg-cards .product-comments .star {
  width: 11px;
  height: 11px;
}

.eg-cards .product-comments span {
  font-size: 1.05rem;
  color: var(--eg-muted, #6b6a63);
}

.eg-cards .info-stock {
  font-size: 1.1rem;
  color: var(--eg-muted, #6b6a63);
}

.eg-cards .products.grid .product-buttons .add-to-cart {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: var(--eg-muted, #6b6a63) !important;
  text-transform: none;
}

.eg-cards .products.grid .product-buttons .add-to-cart i,
.eg-cards .products.grid .product-buttons .add-to-cart .loading {
  display: none;
}

.eg-cards .group-buttons-des {
  margin-top: 8px;
}

.eg-cards .products.grid .item {
  display: flex;
  margin-bottom: 20px;
}

.eg-cards .products.grid .product-miniature {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.eg-cards .products.grid .product-groups {
  flex: 1 1 auto;
}

.eg-cards .products.grid .thumbnail-container {
  aspect-ratio: 4 / 5;
  background: #fff;
}

.eg-cards .product-groups.pt-5 {
  padding-top: 13px !important;
}

.eg-cards .product-miniature .product-title a {
  font-style: normal;
}

.eg-cards:not(#eg-nil) .products.grid.row {
  margin-left: -9px;
  margin-right: -9px;
}

.eg-cards:not(#eg-nil) .products.grid .item {
  padding-left: 9px;
  padding-right: 9px;
  margin-bottom: 18px !important;
}

.eg-cards:not(#eg-nil) .product-miniature.item-one .thumbnail-container {
  padding: 0;
}

.eg-cards:not(#eg-nil) .product-miniature .product-groups {
  padding: 13px 14px 15px;
}

.eg-cards:not(#eg-nil) .product-miniature .product-description {
  padding: 0;
}

.eg-cards:not(#eg-nil) .product-miniature .product-title {
  padding: 0;
  margin: 0 0 7px;
}

.eg-cards:not(#eg-nil) .product-miniature .product-manufacturer {
  margin: 0 0 9px;
}

.eg-cards:not(#eg-nil) .product-miniature .product-group-price {
  margin: 0 0 6px !important;
}

.eg-cards:not(#eg-nil) .product-miniature .product-comments {
  margin: 0;
}

.eg-cards:not(#eg-nil) .product-comments .star {
  width: 12px;
  height: 12px;
  float: none;
}

.eg-cards:not(#eg-nil) .product-comments .star::after {
  display: block;
  font-size: 12px;
  line-height: 12px;
}

.eg-cards:not(#eg-nil) .product-comments > span {
  margin-left: 0;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--eg-muted, #6b6a63);
}

.eg-cards:not(#eg-nil) .product-miniature .product-price-and-shipping .price {
  color: var(--eg-ink, #1a1a1a);
}

.eg-cards:not(#eg-nil) .product-miniature .product-manufacturer span a {
  font-style: normal;
  text-decoration: none;
}

.eg-cards:not(#eg-nil) .products.grid .product-miniature .product-groups,
.eg-cards:not(#eg-nil) .products.grid .product-miniature .product-description {
  position: static;
}

.eg-cards:not(#eg-nil) .products.grid .product-miniature .product-manufacturer {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  margin: 0;
}

.eg-cards:not(#eg-nil) .products.grid .product-miniature .product-manufacturer span a {
  box-shadow: 0 1px 2px rgba(26, 18, 10, .08);
}

.eg-cards:not(#eg-nil) .products.grid .thumbnail-container .thumbnail::after {
  height: 36px;
  padding: 0;
  line-height: 36px;
}

.eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons .add-to-cart {
  display: none;
}

.eg-cards .eg-list-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px;
}

.eg-cards .eg-list-colors__count {
  display: none;
}

.eg-cards .eg-color-dot {
  display: block;
  width: 13px;
  height: 13px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .14);
  box-shadow: inset 0 0 0 1.5px #fff;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.eg-cards .eg-color-dot:hover {
  transform: scale(1.12);
}

.eg-cards .eg-color-dot.is-active {
  box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 2px var(--eg-ink, #1a1a1a);
}

.eg-cards .eg-color-dot.is-extra {
  display: none;
}

.eg-cards .eg-list-colors__more {
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--eg-muted, #6b6a63);
  pointer-events: none;
}

.eg-cards:not(#eg-nil) .product-miniature a.quick-view {
  display: none;
}

.eg-cards .eg-list-methods,
.eg-cards .eg-list-perks,
.eg-cards .eg-list-viewlink {
  display: none;
}

.eg-cards:not(#eg-nil) .product-miniature .thumbnail-container {
  overflow: hidden;
}

.eg-cards:not(#eg-nil) .product-miniature .thumbnail-container .image-secondary {
  display: none;
}

.eg-cards:not(#eg-nil) .product-miniature .thumbnail-container .thumbnail .image-cover,
.eg-cards:not(#eg-nil) .product-miniature:hover .thumbnail-container .two-image .image-cover {
  opacity: 1;
  transition: transform .45s ease;
}

.eg-cards:not(#eg-nil) .product-miniature:hover .thumbnail-container .thumbnail .image-cover {
  transform: scale(1.06);
}

.eg-cards:not(#eg-nil) .product-miniature .thumbnail-container .thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 255, 255, .3);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.eg-cards:not(#eg-nil) .product-miniature:hover .thumbnail-container .thumbnail::before {
  opacity: 1;
}

.eg-cards:not(#eg-nil) .product-miniature .product-title a {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--eg-ink, #1a1a1a);
}

.eg-cards:not(#eg-nil) .product-miniature .product-price-and-shipping {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.eg-cards:not(#eg-nil) .product-miniature .product-price-and-shipping .price {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.eg-cards:not(#eg-nil) .product-miniature .product-manufacturer span a {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 4px 10px;
}

.eg-cards:not(#eg-nil) .product-miniature .product-comments > span,
.eg-cards:not(#eg-nil) .product-miniature .eg-list-colors__more {
  font-size: 1.05rem;
}

.eg-cards .eg-vat-note {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--eg-muted, #6b6a63);
}

@media (hover: none), (max-width: 767px) {
  .eg-cards:not(#eg-nil) .products.grid .thumbnail-container .thumbnail::after {
    display: none;
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-groups {
    display: flex;
    flex-direction: column;
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-description {
    flex: 1 1 auto;
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons {
    display: block;
    height: auto;
    margin-top: 10px;
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons .add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border-radius: 99px;
    background: var(--eg-ink, #1a1a1a) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: .02em;
    text-transform: uppercase;
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons .add-to-cart > span,
  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons .add-to-cart > i {
    display: none;
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons .add-to-cart::after {
    content: "Visa produkt";
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons a.add-to-cart.show_popup:not([data-button-action]):not(.btn-link) {
    background: var(--eg-yellow, #f5a623) !important;
    color: var(--eg-ink, #1a1a1a) !important;
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons a.add-to-cart.show_popup:not([data-button-action]):not(.btn-link)::after {
    content: "Designa nu";
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons .add-to-cart[data-button-action="add-to-cart"]::after {
    content: "Lägg i varukorg";
  }

  .eg-cards:not(#eg-nil) .products.grid .product-miniature .product-buttons a.add-to-cart:not(.show_popup)::after {
    content: "Välj alternativ";
  }

}

.eg-cards:not(#eg-nil) .product-miniature .product-description .product-title {
  min-height: 0;
}

/* ---- hand-written (build-product-card-css.js TAIL) ---- */

/* The miniature brings its own Bootstrap column (<div class="item col-xl-3
   col-lg-4 col-md-6">). On the product and home pages the columns come from
   the page's own CSS grid (.pgr-related-grid, .eg-best__grid, .eg-new__grid),
   so the column widths and gutters are switched off here. */
.eg-cards:not(#eg-nil) .products.grid > .item {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  margin: 0 !important;
}
