/*
Theme Name: MijnMagazijn 2027
Version: 0.4.109
Text Domain: mijnmagazijn-2027
*/

.cart-count[hidden] {
  display: none;
}

.new-product-slider .product h3 {
  min-height: 2.9em;
  overflow-wrap: anywhere;
}

.new-product-slider .product-pricing {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  align-content: start;
}

.new-product-slider .product-specs {
  overflow-wrap: anywhere;
}

.new-product-slider .product-card-actions {
  margin-top: auto;
}

.new-product-slider .product-card-actions > .btn {
  width: 100%;
}

.new-product-slider .product-stock {
  min-height: 1.5em;
}

.new-product-slider .product-stock svg {
  flex-shrink: 0;
}

.new-product-slider .product-stock.is-unavailable {
  color: var(--muted);
}

@media (max-width: 700px) {
  .new-product-slider .product h3 {
    min-height: 0;
  }
}

.new-product-slider .product-card-actions .order-controls button,
.new-product-slider .product-card-actions > .btn {
  min-height: 46px;
}

.cart-price-wrapper .mm-price-per-pack {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 3px;
}
.mm-product-card h3,
.mm-product-card .product-specs {
  overflow-wrap: anywhere;
}
.mm-product-card .product-card-actions {
  margin-top: auto;
}
.mm-product-card .product-card-actions > .btn {
  width: 100%;
}
.mm-product-card .product-stock.is-unavailable {
  color: var(--muted);
}
.mm-product-card .product-pricing {
  grid-template-columns: minmax(0, 1fr) auto;
}
.mm-product-card .product-pricing .woocommerce-Price-amount {
  white-space: nowrap;
}
.mm-product-card .product-top:empty {
  display: none;
}

.mm-product-loop-item {
  min-width: 0;
}
.mm-product-loop-item > .mm-product-card {
  height: 100%;
}

.page-main {
  background: var(--paper);
  padding-block: clamp(24px, 4vw, 56px);
}
.page-article {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(16px, 3.5vw, 44px);
}
.page-heading {
  margin-bottom: clamp(16px, 2vw, 28px);
}
.page-hero {
  margin-bottom: clamp(16px, 2vw, 28px);
}
.page-hero .page-hero-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 700px) {
  .page-hero .page-hero-image {
    height: 160px;
  }
}
.page-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.page-content > :is(p, ul, ol, blockquote):not([class]) a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content img {
  max-width: 100%;
  height: auto;
}

.page-article-body {
  min-width: 0;
}
.page-article.page-article-image-right {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  padding: 0;
}
.page-article-image-right .page-article-body {
  padding: clamp(16px, 3.5vw, 44px);
}
.page-side-image {
  position: relative;
  min-height: 240px;
  border-left: 4px solid #ff6600;
}
.page-side-image .page-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 700px) {
  .page-article.page-article-image-right {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-side-image {
    grid-row: 1;
    min-height: 160px;
  }
}

.page-article.page-article-image-above {
  padding: 0;
}
.page-article-image-above .page-hero {
  margin: 0;
  border-bottom: 4px solid #ff6600;
}
.page-article-image-above .page-article-body {
  padding: clamp(16px, 3.5vw, 44px);
}

:is(.product-stock, .detail-delivery, .mm-search-stock, .mm-search-preview-stock, .cp-stock, .stock):has(use[href="#truck"]),
.stock:has(img[src*="stock-truck.svg"]) {
  color: #000 !important;
}

body:not(.woocommerce-page) .page-content :is(button, input[type="submit"], input[type="button"], a.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #ff6600;
  border-radius: 0;
  background: #ff6600;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color .2s ease, border-color .2s ease;
}
body:not(.woocommerce-page) .page-content :is(button, input[type="submit"], input[type="button"], a.button):hover {
  background: #e65b00;
  border-color: #e65b00;
  color: #fff;
}
body:not(.woocommerce-page) .page-content :is(button, input[type="submit"], input[type="button"]):disabled {
  opacity: .5;
  cursor: default;
}
body:not(.woocommerce-page) .page-content :is(input[type="text"], input[type="email"], input[type="number"], textarea, select) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #9eabb5;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  vertical-align: middle;
}
body:not(.woocommerce-page) .page-content :is(input, textarea, select, button, a.button):focus-visible {
  outline: 2px solid #ff6600;
  outline-offset: 2px;
}
body:not(.woocommerce-page) .page-content hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
body:not(.woocommerce-page) .page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
body:not(.woocommerce-page) .page-content table :is(th, td) {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
body:not(.woocommerce-page) .page-content table th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
@media (max-width: 650px) {
  body:not(.woocommerce-page) .page-content :is(button, input[type="submit"], input[type="button"]) {
    margin-block: 4px;
  }
}

@media (pointer: coarse) {
  html { touch-action: pan-x pan-y; }

  input:not([type="hidden"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}
