/*
 * MAGHREPAGE — Product category visuals
 * Single source of truth for the four category panorama blocks.
 * All source images use the same 2048 × 683 canvas, so no product is cropped.
 */

body .mp-product-list-page .mp-product-list-visual {
  padding: 32px 0 34px;
  background:
    radial-gradient(circle at 8% 12%, rgba(39, 170, 225, .12), transparent 34%),
    linear-gradient(180deg, #f7fbfe 0%, #fff 70%, #f5f9fc 100%);
}

body .mp-product-list-page .mp-product-list-visual > .mp-container {
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 0;
}

body .mp-product-list-page .mp-product-list-visual__box {
  width: 100%;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #d8eaf5;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 58px rgba(15, 23, 42, .085);
}

body .mp-product-list-page .mp-product-list-visual__figure {
  width: 100%;
  aspect-ratio: 2048 / 683;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}

body .mp-product-list-page .mp-product-list-visual__figure img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  background: #fff;
}

@media (max-width: 900px) {
  body .mp-product-list-page .mp-product-list-visual {
    padding: 24px 0 28px;
  }

  body .mp-product-list-page .mp-product-list-visual > .mp-container {
    width: calc(100% - 40px);
  }

  body .mp-product-list-page .mp-product-list-visual__box {
    padding: 12px;
    border-radius: 26px;
  }

  body .mp-product-list-page .mp-product-list-visual__figure {
    border-radius: 20px;
  }
}

@media (max-width: 767px) {
  body .mp-product-list-page .mp-product-list-visual {
    padding: 20px 0 24px;
  }

  body .mp-product-list-page .mp-product-list-visual > .mp-container {
    width: calc(100% - 28px);
  }

  body .mp-product-list-page .mp-product-list-visual__box {
    padding: 9px;
    border-radius: 22px;
  }

  body .mp-product-list-page .mp-product-list-visual__figure {
    border-radius: 16px;
  }
}

/* v7.9.212 — Informatique & accessoires: empêcher les titres longs de sortir du cadre mobile */
@media (max-width: 767px) {
  body .mp-product-list-page--informatique-accessoires,
  body .mp-product-list-page--informatique-accessoires .mp-container,
  body .mp-product-list-page--informatique-accessoires .mp-product-list-layout,
  body .mp-product-list-page--informatique-accessoires .mp-product-list-panel,
  body .mp-product-list-page--informatique-accessoires .dataTables_wrapper,
  body .mp-product-list-page--informatique-accessoires .dt-container,
  body .mp-product-list-page--informatique-accessoires table.tablepress,
  body .mp-product-list-page--informatique-accessoires table.tablepress tbody {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body .mp-product-list-page--informatique-accessoires .mp-product-list-panel {
    overflow: hidden !important;
    padding: 10px !important;
  }

  body .mp-product-list-page--informatique-accessoires table.tablepress tbody tr {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    grid-template-areas:
      "img brand"
      "img title"
      "img ref" !important;
    gap: 5px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px 8px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td,
  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td > *,
  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td a,
  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td span,
  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td strong {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    box-sizing: border-box !important;
  }

  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td:nth-child(2) {
    width: 66px !important;
    min-width: 66px !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 7px !important;
  }

  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td:nth-child(2) img {
    max-width: 52px !important;
    max-height: 46px !important;
  }

  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td:nth-child(3),
  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td:nth-child(4),
  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td:nth-child(1) {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .mp-product-list-page--informatique-accessoires table.tablepress tbody td:nth-child(4) {
    font-size: 14px !important;
    line-height: 1.28 !important;
    letter-spacing: -0.01em !important;
  }
}
