/*
 * Mugglagret archive refresh 2026-10-22.
 * Product-card proportions follow Muggkompaniet's tidy 4-across desktop
 * catalog, with smaller, contained mug mockups rather than edge-to-edge art.
 * Applies only to shop/taxonomy/search & home showcase, not single products.
 */

/* Catalog grids: Muggkompaniet's four-column layout with compact mockups */
.ml-shop-main .woocommerce ul.products,
.ml-shop-main ul.products,
.ml-featured-section .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 19px !important;
  align-items: stretch;
  margin: 0 !important;
}
.ml-shop-main ul.products li.product,
.ml-featured-section .woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 18px;
  border-radius: 16px;
}
.ml-shop-main ul.products li.product a.woocommerce-loop-product__link,
.ml-featured-section .woocommerce ul.products li.product a.woocommerce-loop-product__link {
  flex: 1 1 auto;
  display: block;
  text-decoration: none;
}
.ml-shop-main ul.products li.product a.woocommerce-loop-product__link img,
.ml-featured-section .woocommerce ul.products li.product a.woocommerce-loop-product__link img {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  height: 210px !important;
  max-height: 210px !important;
  padding: 16px 14px !important;
  margin: 0 auto 12px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f8f8f5;
  border-radius: 12px;
  aspect-ratio: auto !important;
}
.ml-shop-main ul.products li.product .woocommerce-loop-product__title,
.ml-featured-section .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  min-height: 41px;
  line-height: 1.45;
  text-align: center;
  padding: 0 7px;
}
.ml-shop-main ul.products li.product .price,
.ml-featured-section .woocommerce ul.products li.product .price {
  text-align: center;
  margin: 8px 0 0;
  padding-inline: 3px;
  font-size: 14px;
}
.ml-shop-main ul.products li.product a.button,
.ml-featured-section .woocommerce ul.products li.product a.button {
  margin: 12px 3px 0;
  padding: 11px 8px;
  font-size: 12px;
  border-radius: 12px;
}

/* Full-width visual category hero — short intro above the products */
body.tax-product_cat .ml-shop-main .ml-category-head {
  max-width: 1120px;
  padding: clamp(24px, 3vw, 43px) clamp(19px, 4vw, 66px);
  margin: 8px auto 34px;
  border: 1px solid #dfe8df;
  border-radius: 26px;
  background: radial-gradient(ellipse at 92% 0%, #f7eadd 0, transparent 50%),
              radial-gradient(ellipse at 6% 100%, #e7f0e8 0, transparent 47%), #fffdfa;
  box-shadow: 0 18px 48px rgba(18, 55, 40, .055);
  text-align: center;
}
body.tax-product_cat .ml-shop-main .ml-category-head .page-title {
  margin: 6px 0 14px;
  color: #1d473a;
  font-size: clamp(31px, 3.7vw, 49px);
  letter-spacing: -.052em;
  line-height: 1.1;
}
.ml-archive-hero-intro {
  max-width: 740px;
  margin: 0 auto;
}
.ml-archive-intro-eyebrow,
.ml-category-editorial-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #ba6a50;
}
.ml-archive-intro-eyebrow { margin-bottom: 7px; }
.ml-archive-hero-intro p {
  margin: 0 auto;
  max-width: 660px;
  font-size: 15px;
  color: #556b60;
  line-height: 1.85;
}
.ml-archive-intro-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 23px;
}
.ml-archive-intro-facts span {
  border: 1px solid #e0e9dc;
  background: #fff;
  color: #305d49;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 800;
}

/* Category guide now appears AFTER listings and pagination, in two cards. */
.ml-category-editorial {
  clear: both;
  max-width: 1120px;
  margin: 62px auto 24px;
  padding: clamp(23px, 3.8vw, 48px);
  border: 1px solid #dfe8df;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(24, 70, 45, .04);
  color: #4d6659;
}
.ml-category-editorial-top {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
}
.ml-category-editorial-kicker { margin-bottom: 10px; }
.ml-category-editorial-top h2 {
  color: #1f483a;
  margin: 3px 0 15px;
  font-size: clamp(25px, 3vw, 37px);
  letter-spacing: -.044em;
  line-height: 1.2;
}
.ml-category-editorial-top p {
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
  color: #5d7468;
}
.ml-category-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ml-category-editorial-card {
  border: 1px solid #e3ebe0;
  background: #f7faf5;
  border-radius: 17px;
  padding: clamp(19px, 2.6vw, 30px);
  min-width: 0;
  align-self: stretch;
}
.ml-category-editorial-related { background: #fff8f1; border-color: #f2e8dc; }
.ml-category-editorial-card h3 {
  color: #254a3a;
  font-size: 21px;
  margin: 0 0 17px;
  letter-spacing: -.035em;
}
.ml-category-editorial-card p {
  font-size: 13px;
  line-height: 1.85;
  margin: 0 0 16px;
}
.ml-category-editorial-card p:last-child { margin-bottom: 0; }
.ml-category-editorial-card strong { color: #254e3b; }
.ml-category-editorial-card ul.ml-category-related-links {
  list-style: none;
  padding: 0;
  margin: 17px 0 21px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}
.ml-category-editorial-card ul.ml-category-related-links li { margin: 0; padding: 0; list-style: none; }
.ml-category-editorial-card ul.ml-category-related-links a {
  display: flex;
  align-items: center;
  min-height: 50px;
  height: 100%;
  border: 1px solid #ebdfd3;
  border-radius: 11px;
  padding: 10px 12px;
  background: #fff;
  color: #2d5841;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
}
.ml-category-editorial-card ul.ml-category-related-links a:hover,
.ml-category-editorial-card ul.ml-category-related-links a:focus-visible {
  text-decoration: underline;
  border-color: #8fb49e;
  background: #f1f8ef;
}

@media (max-width: 1050px) {
  .ml-shop-main .woocommerce ul.products,
  .ml-shop-main ul.products,
  .ml-featured-section .woocommerce ul.products {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 15px !important;
  }
  .ml-shop-main ul.products li.product a.woocommerce-loop-product__link img,
  .ml-featured-section .woocommerce ul.products li.product a.woocommerce-loop-product__link img {
    height: 196px !important;
    max-height: 196px !important;
  }
}
@media (max-width: 760px) {
  .ml-shop-main .woocommerce ul.products,
  .ml-shop-main ul.products,
  .ml-featured-section .woocommerce ul.products {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 11px !important;
  }
  .ml-shop-main ul.products li.product a.woocommerce-loop-product__link img,
  .ml-featured-section .woocommerce ul.products li.product a.woocommerce-loop-product__link img {
    height: 150px !important;
    max-height: 150px !important;
    padding: 9px 7px !important;
  }
  .ml-shop-main ul.products li.product .woocommerce-loop-product__title,
  .ml-featured-section .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 52px;
    font-size: 12px;
    padding: 0 2px;
  }
  body.tax-product_cat .ml-shop-main .ml-category-head {
    padding: 22px 16px 24px;
    margin: 0 auto 23px;
    border-radius: 18px;
  }
  .ml-archive-hero-intro p { font-size: 13px; line-height: 1.75; }
  .ml-archive-intro-facts { gap: 7px; margin-top: 17px; }
  .ml-archive-intro-facts span { font-size: 10px; padding: 7px 9px; }
  .ml-category-editorial { padding: 20px 15px; margin-top: 35px; border-radius: 18px; }
  .ml-category-editorial-grid { grid-template-columns: 1fr; gap: 14px; }
  .ml-category-editorial-card { padding: 18px 16px; }
  .ml-category-editorial-card ul.ml-category-related-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 370px) {
  .ml-shop-main ul.products li.product a.woocommerce-loop-product__link img,
  .ml-featured-section .woocommerce ul.products li.product a.woocommerce-loop-product__link img {
    height: 130px !important; max-height: 130px !important;
  }
  .ml-category-editorial-card ul.ml-category-related-links { grid-template-columns: 1fr; }
}
