/* Catalogo e schede condividono tipografia e colori della testata FMCG. */
.mk-page {
  padding-block: 16px clamp(36px, 5vw, 78px);
  color: var(--ink);
}
.mk-page h1, .mk-page h2, .mk-page h3, .mk-card h3 {
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -.035em;
}
.mk-page h1 { font-size: clamp(30px, 2.9vw, 46px); line-height: 1.1; }
.mk-page h2 { font-size: clamp(22px, 1.8vw, 29px); line-height: 1.2; }
.mk-crumbs, .mk-heading-row, .mk-section-heading, .mk-toolbar, .mk-sort,
.mk-filter-chips, .mk-card-foot, .mk-dept-title, .mk-buy-price, .mk-package {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mk-crumbs { flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.mk-crumbs a { color: var(--deep); }
.mk-heading { margin-block: 19px 21px; }
.mk-heading p { color: var(--muted); margin-top: 7px; }
.mk-heading-row, .mk-section-heading, .mk-toolbar, .mk-card-foot, .mk-dept-title { justify-content: space-between; }
.mk-text-link, .mk-reset { color: var(--deep); font-weight: 650; }
.mk-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.mk-layout { display: grid; grid-template-columns: minmax(174px, 215px) minmax(0, 1fr); gap: clamp(18px, 2vw, 32px); align-items: start; }
.mk-sidebar { border-top: 3px solid var(--deep); background: var(--off); padding: 16px; border-radius: 4px 4px 10px 10px; }
.mk-sidebar h2, .mk-mobile-departments > label, .mk-order-box h2, .mk-product-depts h2 {
  font-family: inherit; font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em;
}
.mk-sidebar h2 { margin-bottom: 9px; }
.mk-department-nav a, .mk-price-filters a {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  line-height: 1.28; font-size: 14px;
}
.mk-department-nav a { padding: 4px 8px; margin-inline: -2px; border-radius: 5px; }
.mk-department-nav a[aria-current] { background: var(--mint); color: var(--deep); font-weight: 700; }
.mk-department-nav small { margin-left: auto; font-size: 12px; }
.mk-mobile-filters { display: none; }
.mk-price-filters { margin-top: 14px; padding-top: 17px; border-top: 1px solid var(--line); }
.mk-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #8999a7; border-radius: 4px; background: white; font-size: 14px; }
.mk-price-filters a[aria-current] .mk-check { background: var(--deep); border-color: var(--deep); color: white; }
.mk-toolbar { padding: 0 0 12px; margin-bottom: 15px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mk-toolbar > strong { font-size: 18px; }
.mk-sort { flex-wrap: wrap; gap: 6px; }
.mk-sort label, .mk-quantity, .mk-mobile-departments label { font-weight: 650; }
.mk-sort label, .mk-sort select, .mk-sort button { font-size: 14px; }
.mk-sort select, .mk-sort button, .mk-mobile-departments select, .mk-mobile-departments button,
.mk-quantity input {
  background: #fff; border: 1px solid #a7b7c6; border-radius: 6px;
  padding: 7px 9px; min-height: 44px; max-width: 100%; width: auto;
}
.mk-sort button, .mk-mobile-departments button { color: var(--deep); font-weight: 700; }
.mk-sort button:hover, .mk-mobile-departments button:hover { background: var(--mint); }
.mk-filter-chips { flex-wrap: wrap; gap: 6px; margin: -3px 0 12px; }
.mk-filter-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px; background: var(--mint); border-radius: 5px; color: var(--deep); font-weight: 650; font-size: 13px; }
.mk-filter-chips .mk-reset { background: transparent; text-decoration: underline; text-underline-offset: 2px; }
.mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 17px); align-items: stretch; }
.mk-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mk-card:hover, .mk-card:focus-within, .mk-dept:hover { border-color: #82acb3; }
.mk-card-media { position: relative; background: #fff; border-bottom: 1px solid #edf0f3; }
.mk-card-media > a, .mk-dept-image, .mk-main-photo { display: grid; place-items: center; }
.mk-card-media > a { aspect-ratio: 1.45; padding: 16px 20px; }
.mk-card-media img, .mk-dept-image img, .mk-main-photo img, .mk-thumbnails img {
  display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain;
}
.mk-card-media > a > .ico, .mk-dept-image > .ico, .mk-main-photo > .ico { width: 52px; height: 52px; color: #96a8b2; }
.mk-offer { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 4px; background: var(--plum); color: white; font-size: 12px; font-weight: 750; line-height: 1.2; pointer-events: none; }
.mk-card-save { position: absolute; top: 2px; right: 2px; }
.mk-card-save button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--deep); }
.mk-card-save .ico { box-sizing: content-box; width: 17px; height: 17px; padding: 6px; border-radius: 50%; background: white; border: 1px solid var(--line); }
.mk-card-save button[aria-pressed=true] .ico, .mk-save-product button[aria-pressed=true] .ico { fill: var(--plum); stroke: var(--plum); }
.mk-card-save button:hover .ico { border-color: var(--deep); }
.mk-card-content { flex: 1; display: flex; flex-direction: column; padding: clamp(10px, 1vw, 16px); }
.mk-card h3 { font-size: clamp(15px, 1.08vw, 18px); line-height: 1.3; margin: 0; }
.mk-pack { font-size: 13px; line-height: 1.35; margin-top: 5px; color: var(--muted); }
.mk-card-foot { margin-top: auto; padding-top: 13px; align-items: flex-end; gap: 4px; }
.mk-price strong { font-weight: 750; font-size: clamp(18px, 1.45vw, 24px); letter-spacing: -.045em; color: var(--ink); }
.mk-price s, .mk-buy-price s { color: var(--muted); font-size: 13px; white-space: nowrap; }
.mk-price small { display: block; color: var(--muted); font-size: 12px; }
.mk-card-link { flex-shrink: 0; display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; color: var(--deep); font-size: 21px; }
.mk-card-link:hover, .mk-dept:hover .mk-dept-title b { background: var(--mint); color: var(--deep); text-decoration: none; }
.mk-section { margin-top: clamp(36px, 4vw, 62px); }
.mk-section-heading { padding-block: 10px; margin-bottom: 12px; border-top: 2px solid var(--ink); }
.mk-dept-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.mk-dept { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mk-dept:hover { text-decoration: none; }
.mk-dept-image { aspect-ratio: 1.9; padding: 15px; }
.mk-dept-title { padding: 16px; border-top: 1px solid var(--line); background: var(--off); }
.mk-dept h2 { font-size: clamp(16px, 1.45vw, 23px); line-height: 1.2; }
.mk-dept-title span { font-size: 13px; color: var(--muted); }
.mk-dept-title b { color: var(--deep); font-size: 22px; }
.mk-empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(28px, 6vw, 80px) 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--off); }
.mk-empty > .ico { width: 32px; height: 32px; color: var(--deep); }
.mk-empty p { max-width: 55ch; color: var(--muted); }
.mk-primary { display: inline-flex; justify-content: center; align-items: center; gap: 9px; background: var(--deep); color: #fff; padding: 10px 18px; min-height: 46px; border: 0; border-radius: 7px; font-weight: 700; line-height: 1.3; }
.mk-primary:hover { color: #fff; background: #00535f; text-decoration: none; }
.mk-primary:disabled { color: #465469; background: #dde2e9; cursor: default; }
.mk-product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .94fr) minmax(252px, .7fr); grid-template-rows: auto 1fr; grid-template-areas: "gallery title order" "gallery info order"; gap: 15px clamp(16px, 2.2vw, 36px); align-items: start; margin-block: 24px; }
.mk-product-title { grid-area: title; }
.mk-product-title h1 { font-size: clamp(25px, 2.4vw, 40px); }
.mk-sku { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.mk-sku strong { color: var(--ink); overflow-wrap: anywhere; }
.mk-gallery { grid-area: gallery; min-width: 0; }
.mk-main-photo { aspect-ratio: 1.2; border: 1px solid var(--line); border-radius: 10px; padding: clamp(12px, 2.4vw, 38px); background: #fff; }
.mk-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mk-thumbnails a { display: grid; width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.mk-thumbnails a:hover, .mk-thumbnails a:focus { border-color: var(--deep); }
.mk-product-info { grid-area: info; min-width: 0; overflow-wrap: anywhere; }
.mk-product-info > p { color: var(--muted); line-height: 1.6; }
.mk-package { border-block: 1px solid var(--line); padding: 12px 0; margin-bottom: 15px; }
.mk-package .ico { color: var(--deep); width: 24px; height: 24px; }
.mk-package span, .mk-package strong { display: block; }
.mk-package span { color: var(--muted); font-size: 13px; }
.mk-product-depts { margin-top: 17px; }
.mk-product-depts a { display: inline-block; margin: 6px 9px 0 0; padding-block: 5px; color: var(--deep); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.mk-order-box { grid-area: order; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--deep); border-radius: 9px; background: #fff; padding: clamp(15px, 1.4vw, 22px); }
.mk-buy-price { flex-wrap: wrap; gap: 8px; padding-block: 4px 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.mk-buy-price strong { font-size: clamp(27px, 2.5vw, 40px); line-height: 1.2; letter-spacing: -.05em; }
.mk-variants { margin: 0 0 16px; padding: 0; border: 0; }
.mk-variants legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.mk-variants > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-variants label { position: relative; }
.mk-variants input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.mk-variants span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 5px 9px; border: 1px solid #a7b7c6; border-radius: 5px; font-size: 14px; cursor: pointer; }
.mk-variants input:checked + span { border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); background: var(--mint); color: var(--deep); font-weight: 700; }
.mk-variants input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
.mk-variants input:disabled + span { color: var(--muted); background: var(--off); text-decoration: line-through; cursor: default; }
.mk-quantity { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 14px; }
.mk-quantity input { width: 74px; }
.mk-add, .mk-save-product button { width: 100%; margin-top: 12px; }
.mk-save-product button, .mk-delivery { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; color: var(--deep); }
.mk-save-product button { border: 1px solid var(--line); border-radius: 7px; font-weight: 650; }
.mk-delivery { justify-content: flex-start; margin-top: 14px; border-top: 1px solid var(--line); font-size: 14px; padding-top: 8px; }
.mk-delivery span { margin-left: auto; }
.mk-details { border-block: 1px solid var(--line); padding: clamp(19px, 2vw, 32px) 0; }
.mk-details h2 { margin: 0 0 12px; }
.mk-details p { max-width: 95ch; margin-top: .65em; line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 1150px) {
  .mk-results .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "gallery title" "gallery order" "info order"; }
}
@media (max-width: 820px) {
  .mk-layout { display: block; }
  .mk-sidebar { margin-bottom: 12px; padding: 0 12px; }
  .mk-department-nav, .mk-price-filters { display: none; }
  .mk-mobile-filters { display: block; border: 0; margin: 0; padding: 0; }
  .mk-mobile-filters summary { display: list-item; min-height: 44px; padding: 12px 0; font: 700 15px/1.35 Arial, sans-serif; color: var(--deep); cursor: pointer; }
  .mk-mobile-filters summary::after { content: none; }
  .mk-mobile-departments { display: grid; justify-items: start; gap: 6px; padding: 3px 0 12px; }
  .mk-mobile-departments select { width: 100%; }
  .mk-mobile-departments fieldset { padding: 0; border: 0; margin: 8px 0; }
  .mk-mobile-departments legend { font-weight: 650; }
  .mk-mobile-departments fieldset label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-right: 12px; font-weight: 400; }
  .mk-mobile-departments input[type="checkbox"] { accent-color: var(--deep); }
  .mk-grid, .mk-dept-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .mk-page { width: 94%; padding-top: 12px; }
  .mk-heading { margin-block: 13px 18px; }
  .mk-heading-row, .mk-section-heading { flex-wrap: wrap; gap: 3px 12px; }
  .mk-layout .mk-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mk-toolbar { gap: 5px; align-items: flex-start; }
  .mk-sort { flex-wrap: wrap; }
  .mk-sort label { font-size: 13px; }
  .mk-filter-chips a { min-height: 44px; }
  .mk-card-media > a { aspect-ratio: 1.18; padding: 14px 8px; }
  .mk-card-content { padding: 9px; }
  .mk-card-foot { flex-wrap: wrap; }
  .mk-card-link { margin-left: auto; }
  .mk-dept-grid { gap: 10px; }
  .mk-dept-title { padding: 11px; gap: 4px; }
  .mk-dept-image { aspect-ratio: 1.45; }
  .mk-product { grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "gallery" "order" "info"; grid-template-rows: auto; gap: 16px; margin-top: 17px; }
  .mk-main-photo { aspect-ratio: 1.4; }
  .mk-order-box { padding: 16px; }
  .mk-product-depts { margin-top: 8px; }
}
@media (max-width: 360px) {
  .mk-sort label { flex-basis: 100%; }
  .mk-price strong { font-size: 17px; }
}
