/* Guide Matériel Horeca on the shop (module mhguide): buying guide card + guide articles.
   Category pages: under the product list. Product pages: a .mh-p-sec section under the description. */
.mhgd {
  --g-navy: var(--mh-navy, #0c193a);
  --g-orange: var(--mh-orange, #e65021);
  --g-line: var(--mh-line, #eceff3);
  --g-muted: #6b7486;
  --g-soft: #f5f7fa;
  clear: both;
  margin: 32px 0 8px;
  font-family: inherit;
  color: var(--g-navy);
}
.mhgd--category { padding: 24px 0 8px; border-top: 1px solid var(--g-line); }
.mhgd__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; }
.mhgd__eyebrow {
  display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--g-orange);
}
.mhgd .mhgd__title { margin: 0; padding: 0; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--g-navy); text-transform: none; border: 0; }
.mhgd__title::before, .mhgd__title::after { content: none !important; }
.mhgd__all { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--g-orange); text-decoration: none; }
.mhgd__all:hover { color: var(--g-navy); text-decoration: none; }
.mhgd__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mhgd a { text-decoration: none; }

.mhgd__guide {
  display: flex; flex-direction: column; overflow: hidden; color: var(--g-navy);
  background: linear-gradient(135deg, #0c193a 0%, #1b2a52 100%); border-radius: 16px;
}
.mhgd__gimg { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.mhgd__gimg img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .3s ease; }
.mhgd__guide:hover .mhgd__gimg img { transform: scale(1.04); }
.mhgd__gbody { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; color: rgba(255, 255, 255, .85); }
.mhgd__tag { align-self: flex-start; padding: 3px 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--g-orange); border-radius: 999px; }
.mhgd__gtitle { font-size: 18px; font-weight: 800; line-height: 1.25; color: #fff; }
.mhgd__gintro { font-size: 14px; line-height: 1.5; }
.mhgd__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: #ffb59a; }
.mhgd__guide:hover .mhgd__cta { color: #fff; }

.mhgd__post {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px;
  color: var(--g-navy); background: #fff; border: 1px solid var(--g-line); border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mhgd__post:hover { border-color: #d5dae3; box-shadow: 0 10px 24px rgba(12, 25, 58, .1); }
.mhgd__pimg { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--g-soft); border-radius: 10px; }
.mhgd__pimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mhgd__pbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mhgd__pcat { font-size: 12px; font-weight: 700; color: var(--g-orange); }
.mhgd__ptitle { display: -webkit-box; overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--g-navy); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mhgd__post:hover .mhgd__ptitle { color: var(--g-orange); }
.mhgd__pmeta { font-size: 12.5px; color: var(--g-muted); }

@media (min-width: 768px) {
  .mhgd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .mhgd__grid.has-guide .mhgd__guide { grid-row: span 3; }
  .mhgd--category .mhgd__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mhgd--category .mhgd__grid.has-guide { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
  .mhgd--category .mhgd__grid.has-guide .mhgd__guide { grid-row: auto; }
  .mhgd--category .mhgd__post { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; padding: 0 0 14px; overflow: hidden; }
  .mhgd--category .mhgd__pimg { border-radius: 0; }
  .mhgd--category .mhgd__pbody { padding: 0 14px; }
  .mhgd .mhgd__title { font-size: 26px; }
}
