:root{--navy:#142b4d;--red:#df2f35;--navy-deep:#0c1d35;}
/* Corrección móvil del panel de administración: tarjetas de productos */
*, *::before, *::after { box-sizing: border-box; }

@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { min-width: 0; }

  .admin-products,
  .admin-products > *,
  .admin-products article,
  .admin-products section,
  .admin-products .product,
  .admin-products .product-card,
  .admin-products .admin-product {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-products {
    display: block !important;
    width: 100% !important;
    margin-top: 20px;
  }

  .admin-products > *,
  .admin-products article,
  .admin-products section,
  .admin-products .product,
  .admin-products .product-card,
  .admin-products .admin-product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 18px 0 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .admin-products img {
    display: block;
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    object-fit: contain;
    justify-self: start;
  }

  .admin-products h1,
  .admin-products h2,
  .admin-products h3,
  .admin-products h4,
  .admin-products strong,
  .admin-products p,
  .admin-products span,
  .admin-products small,
  .admin-products dt,
  .admin-products dd {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .admin-products button,
  .admin-products a.button,
  .admin-products .button,
  .admin-products [type="submit"] {
    display: flex !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px;
    margin: 8px 0 0 !important;
    white-space: normal !important;
    text-align: center;
    justify-content: center;
    overflow-wrap: anywhere;
  }

  .admin-products .status,
  .admin-products .badges,
  .admin-products .actions,
  .admin-products .product-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
  }

  .admin-search,
  .inline-form,
  .request,
  .notice {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form > input,
  .inline-form > select,
  .inline-form > textarea,
  .inline-form > button,
  .inline-form > .button { width: 100%; max-width: 100%; }
}

/* Logos de marcas: caja uniforme sin deformar ni desbordar */
.brand-showcase img,
.brand-showcase picture img,
.brands img,
.brands picture img {
  display: block;
  width: 180px !important;
  height: 72px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
}

.brand-showcase a,
.brands a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 200px !important;
  min-height: 96px !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .brand-showcase img,
  .brand-showcase picture img,
  .brands img,
  .brands picture img {
    width: 150px !important;
    height: 60px !important;
  }
  .brand-showcase a,
  .brands a { width: 170px !important; min-height: 84px !important; }
}